From 0bc3cbaaed880a8a2281945ca20fc787910872f5 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 21 Sep 2023 22:36:45 +0300 Subject: [PATCH] add spaces to variable declaration --- files/routes/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/search.py b/files/routes/search.py index 957aa296f..769481279 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -114,11 +114,11 @@ def searchposts(v): if 'over18' in criteria: posts = posts.filter(Post.over_18==True) if 'domain' in criteria: - domain=criteria['domain'] + domain = criteria['domain'] domain = domain.replace('\\', '').replace('_', '\_').replace('%', '').strip() - posts=posts.filter( + posts = posts.filter( or_( Post.url.ilike("https://"+domain+'/%'), Post.url.ilike("https://"+domain),