From ab77d44ba3b9b01354ee4c59c5fba1ea0d252f2a Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Thu, 14 Jul 2022 01:41:57 +0000 Subject: [PATCH] rename db_dsn to dsn variable in bot.py and update.py --- bot.py | 2 +- update.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 254f022..ef89fd6 100644 --- a/bot.py +++ b/bot.py @@ -9,7 +9,7 @@ from telegram import CommandProcessor load_dotenv() token = os.getenv('RSSBOT_TG_TOKEN') -db_dsn = os.getenv('RSSBOT_DSN',) +dsn = os.getenv('RSSBOT_DSN',) log_level = os.getenv('LOG_LEVEL', 'INFO') print('Starting the bot with logging level', log_level.upper()) diff --git a/update.py b/update.py index d679170..2a97740 100644 --- a/update.py +++ b/update.py @@ -11,7 +11,7 @@ from telegram import Notifier load_dotenv() token = os.getenv('RSSBOT_TG_TOKEN') -db_dsn = os.getenv('RSSBOT_DSN') +dsn = os.getenv('RSSBOT_DSN') log_level = os.getenv('LOG_LEVEL', 'INFO') print('Starting the updater with logging level', log_level.upper())