From 6a7b07ac9f22f3a2a2d19a19a19106cd9d35c5cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phillip=20K=C3=BChne?= Date: Wed, 6 Oct 2021 02:02:23 +0200 Subject: [PATCH] data type error in config variables --- backend/app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/main.py b/backend/app/main.py index 099d367..570c7f6 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -74,11 +74,11 @@ def settings_post(): entryquota = request.form.get("entryquota") maxqueue = request.form.get("maxqueue") if entryquota.isnumeric() and int(entryquota) > 0: - app.config['ENTRY_QUOTA'] = entryquota + app.config['ENTRY_QUOTA'] = int(entryquota) else: abort(400) if maxqueue.isnumeric and int(maxqueue) > 0: - app.config['MAX_QUEUE'] = maxqueue + app.config['MAX_QUEUE'] = int(maxqueue) else: abort(400)