bug fix in update.py - add load_dotenv

This commit is contained in:
mitsuha_s 2022-07-09 00:53:14 +00:00
parent 78ef3bb430
commit f943f10c4d

View file

@ -3,6 +3,9 @@ from rss import RssReader
from update_manager import UpdateManager from update_manager import UpdateManager
from database import Database from database import Database
from telegram import Notifier from telegram import Notifier
from dotenv import load_dotenv
load_dotenv()
token = os.getenv('TELEGRAM_TOKEN') token = os.getenv('TELEGRAM_TOKEN')
db_path = os.getenv('DATABASE_PATH') db_path = os.getenv('DATABASE_PATH')