From 93bf904af71a5355868204224b408d43a8290aa3 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 21 Sep 2023 22:36:15 +0300 Subject: [PATCH] remove repeated filters --- files/routes/search.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/files/routes/search.py b/files/routes/search.py index fb77214bf..957aa296f 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -121,16 +121,10 @@ def searchposts(v): posts=posts.filter( or_( Post.url.ilike("https://"+domain+'/%'), - Post.url.ilike("https://"+domain+'/%'), - Post.url.ilike("https://"+domain), Post.url.ilike("https://"+domain), Post.url.ilike("https://www."+domain+'/%'), - Post.url.ilike("https://www."+domain+'/%'), - Post.url.ilike("https://www."+domain), Post.url.ilike("https://www."+domain), Post.url.ilike("https://old." + domain + '/%'), - Post.url.ilike("https://old." + domain + '/%'), - Post.url.ilike("https://old." + domain), Post.url.ilike("https://old." + domain) ) )