duwiuishsuehgdz

This commit is contained in:
fireworks88 2021-08-23 13:05:56 +02:00
parent aca1034400
commit 595753d323
3 changed files with 28 additions and 2 deletions

View file

@ -172,6 +172,8 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing):
return data
def award_count(self, kind) -> int:
return len([x for x in self.awards if x.kind == kind])
@property
def json_core(self):