forked from MarseyWorld/MarseyWorld
fix 500 in search.py
parent
6465982580
commit
c2b6c5903d
|
@ -191,7 +191,7 @@ def searchcomments(v):
|
||||||
|
|
||||||
if 'post' in criteria:
|
if 'post' in criteria:
|
||||||
try: post = int(criteria['post'])
|
try: post = int(criteria['post'])
|
||||||
except: abort(404, f"Post with id {post} does not exist.")
|
except: abort(404)
|
||||||
comments = comments.filter(Comment.parent_submission == post)
|
comments = comments.filter(Comment.parent_submission == post)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue