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)