From 095e1d917cce7a7c6202d640656a908ab13a3099 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 7 May 2023 22:35:31 +0300 Subject: [PATCH] remove ugly unnecesary else statement --- files/routes/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/search.py b/files/routes/search.py index 2ef2ea63f1..0a22b4d2ab 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -89,7 +89,7 @@ def searchposts(v:User): domain_obj=None, error=f"@{author.username}'s profile is private; You can't use the 'author' syntax on them." ), 403 - else: posts = posts.filter(Submission.author_id == author.id) + posts = posts.filter(Submission.author_id == author.id) if 'q' in criteria: if('title' in criteria):