We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c0db5e commit 0a7969eCopy full SHA for 0a7969e
collectors/game_coordinator.py
@@ -132,7 +132,10 @@ async def update_game_version(self):
132
# We also want to ensure that the data is up to date, so we check datetime
133
new_data_datetime = (dt.datetime.fromisoformat(data.cs2_version_timestamp)
134
.replace(tzinfo=VALVE_TIMEZONE).astimezone(dt.UTC))
135
+ logging.info(f'{new_data_datetime=}')
136
is_up_to_date = utime.utcnow() - new_data_datetime < dt.timedelta(hours=12)
137
+ logging.info(f'{utime.utcnow()=}')
138
+ logging.info(f'{is_up_to_date=}')
139
140
if no_cached_data or (is_up_to_date and data.cs2_client_version != self.cache.get('cs2_client_version')):
141
self.update_cache(data.asdict())
0 commit comments