diff --git a/collectors/game_coordinator.py b/collectors/game_coordinator.py index 213944e..4d88e3f 100644 --- a/collectors/game_coordinator.py +++ b/collectors/game_coordinator.py @@ -132,7 +132,10 @@ async def update_game_version(self): # We also want to ensure that the data is up to date, so we check datetime new_data_datetime = (dt.datetime.fromisoformat(data.cs2_version_timestamp) .replace(tzinfo=VALVE_TIMEZONE).astimezone(dt.UTC)) + logging.info(f'{new_data_datetime=}') is_up_to_date = utime.utcnow() - new_data_datetime < dt.timedelta(hours=12) + logging.info(f'{utime.utcnow()=}') + logging.info(f'{is_up_to_date=}') if no_cached_data or (is_up_to_date and data.cs2_client_version != self.cache.get('cs2_client_version')): self.update_cache(data.asdict())