fix this https://rdrama.net/h/changelog/post/165657/changelog-megathread-marseynotes/5106752#context
parent
74587b12da
commit
86adb7c5c0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue