forked from rDrama/rDrama
fix 500 error
parent
cf2f91df64
commit
0255bd115c
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue