This commit is contained in:
Aevann1 2022-02-13 23:25:09 +02:00
parent a95bff2d76
commit 59773aaa30
20 changed files with 36 additions and 56 deletions

View file

@ -70,7 +70,7 @@ class Comment(Base):
@property
@lazy
def top_comment(self):
return g.db.query(Comment).filter_by(id=self.top_comment_id).first()
return g.db.query(Comment).filter_by(id=self.top_comment_id).one_or_none()
@property
@lazy