either fix comment search in holes or break all comment search

pull/78/head
GeneralHurricane 2022-12-17 09:09:01 -06:00
parent 5cbe4749f1
commit 4949b0757b
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ def searchcomments(v:User):
if 'over18' in criteria: comments = comments.filter(Comment.over_18 == True)
if search_operator_hole in criteria:
comments = comments.filter(Submission.sub == criteria[search_operator_hole])
comments = comments.filter(Comment.parent_submission.sub == criteria[search_operator_hole])
comments = apply_time_filter(t, comments, Comment)