forked from MarseyWorld/MarseyWorld
order poll votes by time of creation
parent
c56f3951e1
commit
98e3e63547
|
@ -47,7 +47,7 @@ def option_votes(option_id, v):
|
||||||
|
|
||||||
if not option: abort(404)
|
if not option: abort(404)
|
||||||
|
|
||||||
ups = g.db.query(SubmissionOptionVote).filter_by(option_id=option_id).all()
|
ups = g.db.query(SubmissionOptionVote).filter_by(option_id=option_id).order_by(SubmissionOptionVote.created_utc).all()
|
||||||
|
|
||||||
return render_template("poll_votes.html",
|
return render_template("poll_votes.html",
|
||||||
v=v,
|
v=v,
|
||||||
|
@ -97,7 +97,7 @@ def option_votes_comment(option_id, v):
|
||||||
|
|
||||||
if not option: abort(404)
|
if not option: abort(404)
|
||||||
|
|
||||||
ups = g.db.query(CommentOptionVote).filter_by(option_id=option_id).all()
|
ups = g.db.query(CommentOptionVote).filter_by(option_id=option_id).order_by(CommentOptionVote.created_utc).all()
|
||||||
|
|
||||||
return render_template("poll_votes.html",
|
return render_template("poll_votes.html",
|
||||||
v=v,
|
v=v,
|
||||||
|
|
Loading…
Reference in New Issue