From 38c958b5a512e764ca892b4b97792dbfe7288115 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 29 Jul 2021 08:59:04 +0200 Subject: [PATCH] dffd --- drama/classes/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drama/classes/comment.py b/drama/classes/comment.py index de3619f3a..f1bc23866 100644 --- a/drama/classes/comment.py +++ b/drama/classes/comment.py @@ -214,7 +214,7 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing): return data def voted(self, v): - x = g.db.query(CommentVote).filter_by(comment_id=self.id, user_id=g.v.id).first() + x = g.db.query(CommentVote).filter_by(comment_id=self.id, user_id=v.id).first() if x: return x.vote_type else: return 0