make summary age check timezone aware
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s
This commit is contained in:
parent
d02794709c
commit
bfe8651ee7
@ -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
|
||||
|
Reference in New Issue
Block a user