mirror of
https://git.wownero.com/wownero/wownero-funding-system.git
synced 2024-08-15 00:53:45 +00:00
Sort comments by date posted
This commit is contained in:
parent
032437c37b
commit
3d64e48de8
1 changed files with 1 additions and 0 deletions
|
@ -167,6 +167,7 @@ class Proposal(base):
|
|||
q = db_session.query(Comment)
|
||||
q = q.filter(Comment.proposal_id == self.id)
|
||||
q = q.filter(Comment.replied_to == None)
|
||||
q = q.order_by(Comment.date_added.desc())
|
||||
comments = q.all()
|
||||
|
||||
for c in comments:
|
||||
|
|
Loading…
Reference in a new issue