forked from rDrama/rDrama
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]))
|
return bool(len([x for x in self.awards if x.kind == kind]))
|
||||||
|
|
||||||
def voted(self, v):
|
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
|
@property
|
||||||
def title(self):
|
def title(self):
|
||||||
|
|
Loading…
Reference in New Issue