remotes/1693045480750635534/spooky-22
Aevann1 2021-09-20 16:57:43 +02:00
parent f881c0e480
commit bd3f0ff2e6
1 changed files with 0 additions and 4 deletions

View File

@ -70,10 +70,6 @@ class AwardRelationship(Base):
post = relationship("Submission", primaryjoin="AwardRelationship.submission_id==Submission.id", lazy="joined", viewonly=True)
comment = relationship("Comment", primaryjoin="AwardRelationship.comment_id==Comment.id", lazy="joined", viewonly=True)
@property
@lazy
def given(self):
return bool(self.submission_id) or bool(self.comment_id)
@property
@lazy