From 4d59a366ad7baf6b5d631b050be38ab7c83b28ce Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 10 Feb 2022 22:54:45 +0200 Subject: [PATCH] fd --- files/routes/front.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index 892b891b3..d0e8f066c 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -133,7 +133,7 @@ def notifications(v): @limiter.limit("3/second;30/minute;400/hour;2000/day") @auth_desired def front_all(v, sub=None): - if sub: sub = g.db.query(Sub).filter_by(name=sub..strip().lower()).one_or_none() + if sub: sub = g.db.query(Sub).filter_by(name=sub.strip().lower()).one_or_none() if request.path.startswith('/s/') and not sub: abort(404)