diff --git a/files/routes/search.py b/files/routes/search.py index d2c2f13d0..58880fac2 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -210,7 +210,7 @@ def searchcomments(v): - comments = g.db.query(Comment).options(lazyload('*')).filter(Comment.parent_submission != None).join(Comment.comment_aux) + comments = g.db.query(Comment.id).options(lazyload('*')).filter(Comment.parent_submission != None).join(Comment.comment_aux) if 'q' in criteria: words=criteria['q'].split()