forked from rDrama/rDrama
remove unnecessary lines
parent
75ae64fd35
commit
62e609da43
|
@ -267,11 +267,7 @@ class Comment(Base):
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
def award_count(self, kind, v):
|
def award_count(self, kind, v):
|
||||||
if v and v.poor and kind.islower(): return 0
|
return len([x for x in self.awards if x.kind == kind])
|
||||||
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
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
|
|
Loading…
Reference in New Issue