This commit is contained in:
Aevann1 2021-09-22 00:44:18 +02:00
parent e849aa7d54
commit 22b56f5ed4
10 changed files with 25 additions and 25 deletions

View file

@ -65,10 +65,10 @@ class AwardRelationship(Base):
comment_id = Column(Integer, ForeignKey("comments.id"), default=None)
kind = Column(String(20))
user = relationship("User", primaryjoin="AwardRelationship.user_id==User.id", lazy="joined")
user = relationship("User", primaryjoin="AwardRelationship.user_id==User.id")
post = relationship("Submission", primaryjoin="AwardRelationship.submission_id==Submission.id", lazy="joined")
comment = relationship("Comment", primaryjoin="AwardRelationship.comment_id==Comment.id", lazy="joined")
post = relationship("Submission", primaryjoin="AwardRelationship.submission_id==Submission.id")
comment = relationship("Comment", primaryjoin="AwardRelationship.comment_id==Comment.id")
@property