Aevann 2023-10-05 12:47:21 +03:00
parent 74587b12da
commit 86adb7c5c0
1 changed files with 2 additions and 0 deletions

View File

@ -315,6 +315,8 @@ class Comment(Base):
@lazy
def award_count(self, kind, v):
if v and v.poor and kind not in FISTMAS_AWARDS + HOMOWEEN_AWARDS:
return 0
return len([x for x in self.awards if x.kind == kind])
@lazy