From 2f035a4222cdb881e08e43b5cd6bbfad6ca0faa4 Mon Sep 17 00:00:00 2001 From: Luciano Gervasoni Date: Tue, 14 Oct 2025 12:23:05 +0200 Subject: [PATCH] Notifier fix --- app_urls/fetcher/src/notifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_urls/fetcher/src/notifier.py b/app_urls/fetcher/src/notifier.py index 8d92292..503c510 100644 --- a/app_urls/fetcher/src/notifier.py +++ b/app_urls/fetcher/src/notifier.py @@ -94,7 +94,7 @@ def notify_telegram_warning(last_hours, channel="WARNING"): # Minimum ratio of processed raw urls if (urls_data_status_dict.get("total") > 0): - if (urls_data_status_dict.get("raw") / urls_data_status_dict.get("total") < MINIMUM_PROCESSED_URLS_RATIO): + if (urls_data_status_dict.get("raw", 0) / urls_data_status_dict.get("total") < MINIMUM_PROCESSED_URLS_RATIO): message += "WARNING - Small ratio of processed raw URLs during the last {} hours: {}\n".format(last_hours, urls_data_status_dict.get("total")) message += "\nURLs per status:\n" for o in urls_data_status: