Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed unability to track CS2's game coordinator status #15

Merged
merged 7 commits into from
May 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion core.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
('japan', 'tokyo'): 'Japan',
}

execution_start_dt = dt.datetime.now()

UNUSED_FIELDS = ['csgo_client_version',
'csgo_server_version',
'csgo_patch_version',
Expand Down Expand Up @@ -182,7 +184,7 @@ async def update_cache_info():
except Exception:
logging.exception('Caught exception in the main thread!')


@scheduler.scheduled_job('cron', hour=execution_cron_hour, minute=execution_cron_minute)
async def unique_monthly():
# noinspection PyBroadException
Expand Down
4 changes: 0 additions & 4 deletions functions/info_formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ def format_server_status(data: ServerStatusData, locale: Locale) -> str:
game_servers_dt = f'{format_datetime(game_servers_dt, "HH:mm:ss, dd MMM", locale=lang_code).title()} (UTC)'

text = (
f'<blockquote>Currently we\'re unable to detect CS2\'s game coordinator status, '
f'because one of our dependencies is broken. Other trackers are working fine. '
f'Please accept our apologies.</blockquote>'
f'\n\n'
f'{locale.game_status_text.format(tick, *states)}'
f'\n\n'
f'{locale.latest_data_update.format(game_servers_dt)}'
Expand Down
Loading
Loading