From e2dda73c172f190cbe6ddaa8181aaea899075f2a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 2 Oct 2021 14:50:32 +0200 Subject: [PATCH] fdssdf --- files/routes/settings.py | 4 ++-- files/templates/settings_filters.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index d05a4c7a80..3e03a26e4d 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 = int(frontsize) + if frontsize in [25, 50, 100]: + v.frontsize = frontsize updated = True cache.delete_memoized(frontlist) else: abort(400) diff --git a/files/templates/settings_filters.html b/files/templates/settings_filters.html index 4e92368fc1..88d58490fa 100644 --- a/files/templates/settings_filters.html +++ b/files/templates/settings_filters.html @@ -23,7 +23,7 @@

Change how many posts appear on every page.