[scrobbles] Fix look up of old scrobbles by total seconds

This commit is contained in:
2025-10-28 14:41:52 -04:00
parent 723d739405
commit 2b634e3b7e

View File

@ -822,7 +822,7 @@ class Scrobble(TimeStampedModel):
""" """
is_stale = False is_stale = False
now = timezone.now() now = timezone.now()
seconds_since_last_update = (now - self.modified).seconds seconds_since_last_update = (now - self.modified).total_seconds()
if seconds_since_last_update >= self.media_obj.SECONDS_TO_STALE: if seconds_since_last_update >= self.media_obj.SECONDS_TO_STALE:
is_stale = True is_stale = True
return is_stale return is_stale