Commit 5f8a990f authored by Mathis Dedial's avatar Mathis Dedial
Browse files

Merge branch 'ordering' into 'master'

Fix issue #9

Closes #9

See merge request !1
parents c855bff2 990f0c14
Pipeline #2702 passed with stage
in 24 seconds
......@@ -22,7 +22,7 @@ def index():
'LEFT JOIN vote AS vote_1 ON vote_1.burger_id=burger.id '
'LEFT JOIN vote AS vote_2 ON vote_2.burger_id=burger.id AND vote_2.nethz= :nethz '
'GROUP BY burger.id '
'ORDER BY vote_count DESC')
'ORDER BY vote_count DESC, timestamp')
burger_list = db.engine.execute(querystring, nethz=g.user).fetchall()
return render_template('vote.html',
burger_list=burger_list,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment