mirror of
https://github.com/pretix/pretix.git
synced 2026-08-17 11:56:27 +00:00
Fixes post-review
This commit is contained in:
@@ -313,4 +313,4 @@ class DeviceLastSeen(models.Model):
|
||||
@property
|
||||
def is_recent(self):
|
||||
# pretixSCAN/pretixPOS sync every 5 minutes, so 7 minutes can be considered "offline"
|
||||
return self.last_seen - now() < timedelta(minutes=7)
|
||||
return now() - self.last_seen < timedelta(minutes=7)
|
||||
|
||||
Reference in New Issue
Block a user