master
Aevann1 2021-07-28 13:04:02 +02:00
parent 76799bdfd9
commit e67927ce9c
1 changed files with 3 additions and 1 deletions

View File

@ -297,7 +297,9 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
return bool(len([x for x in self.awards if x.kind == kind]))
def voted(self, v):
return v.votes.filter_by(submission_id=self.id).first().vote_type
vote = v.votes.filter_by(submission_id=self.id).first()
if vote: return vote.vote_type
else: return 0
@property
def title(self):