bug fix in update.py - add load_dotenv
This commit is contained in:
parent
78ef3bb430
commit
f943f10c4d
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue