This commit is contained in:
Aevann1 2022-01-11 06:30:08 +02:00
parent 0d71a2b51e
commit afdb1b0606
3 changed files with 12 additions and 1 deletions

View file

@ -66,6 +66,11 @@ class Comment(Base):
return f"<Comment(id={self.id})>"
@property
@lazy
def top_comment(self):
return g.db.query(Comment).filter_by(id=self.top_comment_id).first()
@property
@lazy
def flags(self):