From 9b9ede0dc3e9dc1bccec081f97b4bbbc7b6ccf7f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 28 Jul 2021 06:17:19 +0200 Subject: [PATCH] dffd --- drama/classes/comment.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drama/classes/comment.py b/drama/classes/comment.py index 6a9280fd2e..144641c781 100644 --- a/drama/classes/comment.py +++ b/drama/classes/comment.py @@ -111,8 +111,7 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing): def replies(self): r = self.__dict__.get("replies", None) - if r is None: - r = self.child_comments + if not r: r = self.child_comments return r @replies.setter @@ -220,7 +219,7 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing): def voted(self): x = self.__dict__.get("_voted") - if x is not None: + if x != None: return x if g.v: