combine checks
This commit is contained in:
parent
bfd8312ef0
commit
513e5bed6e
|
@ -305,9 +305,8 @@ class TransitServerState(object):
|
||||||
@_machine.output()
|
@_machine.output()
|
||||||
def _record_usage(self):
|
def _record_usage(self):
|
||||||
if self._mood == "jilted":
|
if self._mood == "jilted":
|
||||||
if self._buddy:
|
if self._buddy and self._buddy._mood == "happy":
|
||||||
if self._buddy._mood == "happy":
|
return
|
||||||
return
|
|
||||||
self._usage.record(
|
self._usage.record(
|
||||||
started=self._client.started_time,
|
started=self._client.started_time,
|
||||||
buddy_started=self._buddy._client.started_time if self._buddy is not None else None,
|
buddy_started=self._buddy._client.started_time if self._buddy is not None else None,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user