make summary age check timezone aware
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s

This commit is contained in:
Corban-Lee Jones 2024-12-12 16:44:47 +00:00
parent d02794709c
commit bfe8651ee7

View File

@ -219,7 +219,7 @@ class Player(Model):
summary = await self.get_steam_summary()
# If the summary exists and isn't outdated then return it, no work to be done!
if summary and summary.last_update + timedelta(days=1) > datetime.today():
if summary and summary.last_update + timedelta(days=1) > datetime.now(tz=utc):
return summary
# Update if summary is NoneType or older than 1 day