rename db_dsn to dsn variable in bot.py and update.py
This commit is contained in:
parent
2206c6299d
commit
ab77d44ba3
2
bot.py
2
bot.py
|
@ -9,7 +9,7 @@ from telegram import CommandProcessor
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
||||||
token = os.getenv('RSSBOT_TG_TOKEN')
|
token = os.getenv('RSSBOT_TG_TOKEN')
|
||||||
db_dsn = os.getenv('RSSBOT_DSN',)
|
dsn = os.getenv('RSSBOT_DSN',)
|
||||||
log_level = os.getenv('LOG_LEVEL', 'INFO')
|
log_level = os.getenv('LOG_LEVEL', 'INFO')
|
||||||
|
|
||||||
print('Starting the bot with logging level', log_level.upper())
|
print('Starting the bot with logging level', log_level.upper())
|
||||||
|
|
|
@ -11,7 +11,7 @@ from telegram import Notifier
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
||||||
token = os.getenv('RSSBOT_TG_TOKEN')
|
token = os.getenv('RSSBOT_TG_TOKEN')
|
||||||
db_dsn = os.getenv('RSSBOT_DSN')
|
dsn = os.getenv('RSSBOT_DSN')
|
||||||
log_level = os.getenv('LOG_LEVEL', 'INFO')
|
log_level = os.getenv('LOG_LEVEL', 'INFO')
|
||||||
|
|
||||||
print('Starting the updater with logging level', log_level.upper())
|
print('Starting the updater with logging level', log_level.upper())
|
||||||
|
|
Loading…
Reference in a new issue