Sort comments by date posted

pull/2/head
Sander Ferdinand 6 years ago
parent 032437c37b
commit 3d64e48de8

@ -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…
Cancel
Save