From 2622097de18d675be005c73b843bae4aadcfcd89 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 23 Sep 2021 18:08:31 +0200 Subject: [PATCH] fds --- 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 ff4a2a314..9e6bdd2f6 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -28,7 +28,7 @@ class Comment(Base): __tablename__ = "comments" id = Column(Integer, primary_key=True) - comment_aux = relationship("CommentAux", uselist=False, primaryjoin="Comment.id==CommentAux.id") + comment_aux = relationship("CommentAux", lazy="joined", uselist=False, innerjoin=True, primaryjoin="Comment.id==CommentAux.id") author_id = Column(Integer, ForeignKey("users.id")) parent_submission = Column(Integer, ForeignKey("submissions.id")) created_utc = Column(Integer, default=0)