little fix in bot.by and update.py
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
mitsuha_s 2022-07-14 01:48:20 +00:00
parent ab77d44ba3
commit 2bb167fef5
2 changed files with 3 additions and 3 deletions

4
bot.py
View file

@ -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()

View file

@ -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'))