From d8ef738d19ac38c34943d451992b3fdd44677174 Mon Sep 17 00:00:00 2001 From: Luciano Gervasoni Date: Tue, 14 Oct 2025 13:10:54 +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 503c510..97c4f58 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", 0) / 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: