Fixes post-review

This commit is contained in:
Raphael Michel
2026-08-06 09:06:49 +02:00
parent fcd8f26cb1
commit 02ef36ca99
2 changed files with 5 additions and 13 deletions
+1 -1
View File
@@ -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)