sfd
This commit is contained in:
parent
29507d19bb
commit
87b2ccbb52
5 changed files with 7 additions and 14 deletions
|
@ -69,7 +69,7 @@ class Comment(Base):
|
|||
@property
|
||||
@lazy
|
||||
def flags(self):
|
||||
return g.db.query(CommentFlag).filter_by(comment_id=self.id)
|
||||
return g.db.query(CommentFlag).filter_by(comment_id=self.id).order_by(CommentFlag.id)
|
||||
|
||||
@lazy
|
||||
def poll_voted(self, v):
|
||||
|
@ -399,10 +399,6 @@ class Comment(Base):
|
|||
@lazy
|
||||
def active_flags(self): return self.flags.count()
|
||||
|
||||
@property
|
||||
@lazy
|
||||
def ordered_flags(self): return self.flags.order_by(CommentFlag.id).all()
|
||||
|
||||
def options_html(self, v):
|
||||
html = ""
|
||||
for o in self.options:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue