remotes/1693045480750635534/spooky-22
fireworks88 2021-07-28 01:16:41 +02:00
parent eee45ba85d
commit f83a7db565
1 changed files with 3 additions and 0 deletions

View File

@ -287,6 +287,9 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
return data
def has_award(self, kind):
return bool(len([x for x in self.awards if x.kind == kind]))
@property
def voted(self):
return self._voted if "_voted" in self.__dict__ else 0