This commit is contained in:
Aevann1 2021-09-20 16:57:43 +02:00
parent 9494561360
commit d504c6eb25

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