add spaces to variable declaration

pull/208/head
Aevann 2023-09-21 22:36:45 +03:00
parent 93bf904af7
commit 0bc3cbaaed
1 changed files with 2 additions and 2 deletions

View File

@ -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),