From 1fbf4cf3d4d66ed95659502e8682bb6148056120 Mon Sep 17 00:00:00 2001 From: Luciano Gervasoni Date: Thu, 14 Aug 2025 14:25:56 +0200 Subject: [PATCH] View fix (4) --- app_urls/fetcher/views_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app_urls/fetcher/views_base.py b/app_urls/fetcher/views_base.py index 72f9be6..c16910d 100644 --- a/app_urls/fetcher/views_base.py +++ b/app_urls/fetcher/views_base.py @@ -108,8 +108,8 @@ def notify_status(request): .order_by('id_search__search') - bot_token = os.getenv("TELEGRAM_BOT_TOKEN", "") - chat_id = os.getenv("TELEGRAM_CHAT_ID", "") + bot_token = os.environ.get("TELEGRAM_BOT_TOKEN", "") + chat_id = os.environ.get("TELEGRAM_CHAT_ID", "") message = "During the last {} hours:\n{}\n{}\n{}".format(last_hours, urls_data_status, urls_data_source, urls_data_search)