remove unnecessary lines

pull/195/head
Aevann 2023-08-23 08:59:25 +03:00
parent 75ae64fd35
commit 62e609da43
1 changed files with 1 additions and 5 deletions

View File

@ -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