diff --git a/src/tg/handlers/access_config_handler.py b/src/tg/handlers/access_config_handler.py index 4d1dace..afad655 100644 --- a/src/tg/handlers/access_config_handler.py +++ b/src/tg/handlers/access_config_handler.py @@ -77,6 +77,14 @@ def reload_config_jobs(update, tg_context): reply(load("access_config_handler__reload_config_jobs_usage_example"), update) logger.warning(f"Failed to reload jobs config: {e}") return + num_strings = 0 + try: + num_strings = AppContext().strings_db_client.fetch_strings_sheet( + AppContext().sheets_client + ) + except Exception as e: + reply(load("access_config_handler__reload_config_jobs_usage_example"), update) + logger.warning(f"Failed to reload jobs config when fetching strings: {e}") reply( load( "common__code_wrapper", @@ -84,6 +92,10 @@ def reload_config_jobs(update, tg_context): ), update, ) + reply( + load("db_fetch_strings_sheet_job__success", num_strings=num_strings), + update, + ) @admin_only