forked from MarseyWorld/MarseyWorld
fdfd
parent
76799bdfd9
commit
e67927ce9c
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue