From 247fdd4978a52bca1a86abcb067d95e33c3984f2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 2 Oct 2021 14:54:11 +0200 Subject: [PATCH] dfs --- files/routes/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index 3e03a26e4..d05a4c7a8 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -171,8 +171,8 @@ def settings_profile_post(v): frontsize = request.values.get("frontsize") if frontsize: - if frontsize in [25, 50, 100]: - v.frontsize = frontsize + if frontsize in ["25", "50", "100"]: + v.frontsize = int(frontsize) updated = True cache.delete_memoized(frontlist) else: abort(400)