diff --git a/files/helpers/get.py b/files/helpers/get.py index 3eae1acabf..e60f8ab7ae 100644 --- a/files/helpers/get.py +++ b/files/helpers/get.py @@ -187,10 +187,12 @@ def get_comment(i, v=None, graceful=False, **kwargs): ) ).first() + print(f"v.id = {v.id}") + vts = g.db.query(CommentVote).filter_by(user_id=v.id, comment_id=Comment.id) + print(f"vts = {vts}") vt = g.db.query(CommentVote).filter_by(user_id=v.id, comment_id=Comment.id).first() comment._is_blocking = block and block.user_id == v.id comment._is_blocked = block and block.target_id == v.id - print(vt.vote_type) comment.voted = vt.vote_type if vt else 0 else: