From 62e609da439b5486bbdad74fe5ad06c8f47b3e93 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 23 Aug 2023 08:59:25 +0300 Subject: [PATCH] remove unnecessary lines --- files/classes/comment.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index c3868181a..3ea2fe799 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -267,11 +267,7 @@ class Comment(Base): @lazy def award_count(self, kind, v): - if v and v.poor and kind.islower(): return 0 - num = len([x for x in self.awards if x.kind == kind]) - if num > 4 and kind not in {"shit", "fireflies", "gingerbread"}: - return 4 - return num + return len([x for x in self.awards if x.kind == kind]) @property @lazy