fix env variable

This commit is contained in:
Matěj Divecký 2023-03-06 11:47:48 +01:00
parent bb9948ea06
commit 9b6f462f32

2
app.py
View file

@ -20,7 +20,7 @@ error_messages = {
GROCY_URL = os.getenv('GROCY_URL') GROCY_URL = os.getenv('GROCY_URL')
GROCY_API_KEY = os.getenv('GROCY_API_KEY') GROCY_API_KEY = os.getenv('GROCY_API_KEY')
GROCY_PORT = os.getenv('GROCY_PORT') GROCY_PORT = os.getenv('GROCY_PORT')
CASHBOX_USERID = os.getenv('CASHBOX_USER_ID') CASHBOX_USERID = int(os.getenv('CASHBOX_USER_ID'))
g = Grocy(GROCY_URL, GROCY_API_KEY, port=GROCY_PORT) g = Grocy(GROCY_URL, GROCY_API_KEY, port=GROCY_PORT)