Commit 26046925 authored by Mathis Dedial's avatar Mathis Dedial
Browse files

Fix bug which prevented 'unliking' a burger

parent 60d768ea
Pipeline #2732 passed with stage
in 23 seconds
......@@ -23,7 +23,7 @@ def index():
'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, timestamp')
burger_list = db.engine.execute(querystring, nethz=getattr(session, 'user', '')).fetchall()
burger_list = db.engine.execute(querystring, nethz=session['user']).fetchall()
return render_template('vote.html',
burger_list=burger_list,
bread=BREAD,
......
Supports Markdown
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