From 7db7abc3ab0d9eed9e1e57db3551eb68f1f6df88 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 2 Jul 2022 08:52:11 +0200 Subject: [PATCH] fix 500 error --- files/classes/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index c3f330881..93cc46c12 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -81,7 +81,7 @@ class Comment(Base): author = relationship("User", primaryjoin="User.id==Comment.author_id") senttouser = relationship("User", primaryjoin="User.id==Comment.sentto") parent_comment = relationship("Comment", remote_side=[id], back_populates="child_comments") - child_comments = relationship("Comment", lazy="dynamic" remote_side=[parent_comment_id], back_populates="parent_comment") + child_comments = relationship("Comment", lazy="dynamic", remote_side=[parent_comment_id], back_populates="parent_comment") awards = relationship("AwardRelationship", order_by="AwardRelationship.awarded_utc.desc()", back_populates="comment") flags = relationship("CommentFlag", order_by="CommentFlag.created_utc") options = relationship("CommentOption", order_by="CommentOption.id")