From 9b6f462f3242b9fd0bc67e0eb3588a86e4291c1e Mon Sep 17 00:00:00 2001 From: mdivecky Date: Mon, 6 Mar 2023 11:47:48 +0100 Subject: [PATCH] fix env variable --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 8c3fff8..e9ee6b2 100644 --- a/app.py +++ b/app.py @@ -20,7 +20,7 @@ error_messages = { GROCY_URL = os.getenv('GROCY_URL') GROCY_API_KEY = os.getenv('GROCY_API_KEY') 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)