From 052161c9829b6493b77377f47c1d4b91c05fd09a Mon Sep 17 00:00:00 2001 From: girst Date: Tue, 17 Aug 2021 14:48:40 +0200 Subject: [PATCH] fix try_int() to actually return something urgh. --- app/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 4fa9f9f..80da7bf 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -19,8 +19,8 @@ for name in cf['frontend']['modules'].split(','): @app.template_global() def querystring_page(fields): def try_int(i): - try: int(i) - except: None + try: return int(i) + except: return None tmp = dict(request.args) for field,what in fields.items(): if type(what) is tuple: -- 2.39.3