remove ugly unnecesary else statement

pull/147/head
Aevann 2023-05-07 22:35:31 +03:00
parent 6369716aa5
commit 095e1d917c
1 changed files with 1 additions and 1 deletions

View File

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