From 4949b0757bd2ac30e0104cc0a58a653aa1831375 Mon Sep 17 00:00:00 2001 From: GeneralHurricane Date: Sat, 17 Dec 2022 09:09:01 -0600 Subject: [PATCH] either fix comment search in holes or break all comment search --- files/routes/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/search.py b/files/routes/search.py index a21c19863..6114a7d1c 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -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)