diff --git a/bot.py b/bot.py index ef89fd6..d56ab3c 100644 --- a/bot.py +++ b/bot.py @@ -9,7 +9,7 @@ from telegram import CommandProcessor load_dotenv() token = os.getenv('RSSBOT_TG_TOKEN') -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()) @@ -19,7 +19,7 @@ logging.basicConfig( datefmt='%Y-%m-%d %H:%M:%S', ) -db = Database(db_dsn, logging.getLogger('Database')) +db = Database(dsn, logging.getLogger('Database')) bot = CommandProcessor(token, db, logging.getLogger('CommandProcessor')) bot.run() diff --git a/update.py b/update.py index 2a97740..19e1976 100644 --- a/update.py +++ b/update.py @@ -21,7 +21,7 @@ logging.basicConfig( datefmt='%Y-%m-%d %H:%M:%S' ) -db = Database(db_dsn, logging.getLogger('Database')) +db = Database(dsn, logging.getLogger('Database')) notifier = Notifier(token, logging.getLogger('Notifier')) rss_reader = RssReader(logging.getLogger('RssReader'))