Fix sqlalchemy.exc.ArgumentError

pull/222/head
TriHard 2024-02-15 16:14:30 -07:00
parent 75666a021d
commit 0a8836b12d
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ class Comment(Base):
post: Mapped["Post"] = relationship(back_populates="comments")
author: Mapped["User"] = relationship(primaryjoin="User.id==Comment.author_id")
senttouser: Mapped["User"] = relationship(primaryjoin="User.id==Comment.sentto")
parent_comment: Mapped["Comment"] = relationship(remote_side=[id])
parent_comment: Mapped["Comment"] = relationship(remote_side="Comment.id")
awards: Mapped[list["AwardRelationship"]] = relationship(order_by="AwardRelationship.awarded_utc.desc()", back_populates="comment")
reports: Mapped[list["CommentReport"]] = relationship(order_by="CommentReport.created_utc")
options: Mapped[list["CommentOption"]] = relationship(order_by="CommentOption.id")