forked from rDrama/rDrama
1
0
Fork 0

fix 500 error

master
Aevann 2024-02-07 03:22:14 +02:00
parent cf2f91df64
commit 0255bd115c
1 changed files with 2 additions and 2 deletions

View File

@ -113,11 +113,11 @@ def searchposts(v):
if 'nsfw' in criteria:
nsfw = criteria['nsfw'].lower().strip() == 'true'
posts = posts.filter_by(nsfw=nsfw)
posts = posts.filter(Post.nsfw == nsfw)
if 'effortpost' in criteria:
effortpost = criteria['effortpost'].lower().strip() == 'true'
posts = posts.filter_by(effortpost=effortpost)
posts = posts.filter(Post.effortpost == effortpost)
if 'domain' in criteria:
domain = criteria['domain']