Skip to content

Commit 0a7969e

Browse files
committed
Added some logging to identify the issue
1 parent 9c0db5e commit 0a7969e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

collectors/game_coordinator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ async def update_game_version(self):
132132
# We also want to ensure that the data is up to date, so we check datetime
133133
new_data_datetime = (dt.datetime.fromisoformat(data.cs2_version_timestamp)
134134
.replace(tzinfo=VALVE_TIMEZONE).astimezone(dt.UTC))
135+
logging.info(f'{new_data_datetime=}')
135136
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=}')
136139

137140
if no_cached_data or (is_up_to_date and data.cs2_client_version != self.cache.get('cs2_client_version')):
138141
self.update_cache(data.asdict())

0 commit comments

Comments
 (0)