[scrobbles] Fix look up of old scrobbles by total seconds
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user