fd
This commit is contained in:
parent
6da2e26bfe
commit
7a85ddb559
2 changed files with 1 additions and 9 deletions
|
@ -308,7 +308,3 @@ class Notification(Base):
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
|
|
||||||
return f"<Notification(id={self.id})>"
|
return f"<Notification(id={self.id})>"
|
||||||
|
|
||||||
@property
|
|
||||||
def voted(self):
|
|
||||||
return 0
|
|
|
@ -291,10 +291,6 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
|
||||||
def has_award(self, kind):
|
def has_award(self, kind):
|
||||||
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]))
|
||||||
|
|
||||||
@property
|
|
||||||
def voted(self):
|
|
||||||
return self.voted if "voted" in self.__dict__ else 0
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def title(self):
|
def title(self):
|
||||||
return self.submission_aux.title
|
return self.submission_aux.title
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue