Commit 60d768ea authored by Mathis Dedial's avatar Mathis Dedial
Browse files

Fix syntax error

parent cc5fd993
Pipeline #2731 passed with stage
in 22 seconds
......@@ -55,7 +55,7 @@ def vote():
# User is casting their vote
if request.form.get('action') == 'like':
# Check if the user hasn't already voted for the same burger
if Vote.query.filter_by(nethz=session['user']), burger_id=burger_id).first():
if Vote.query.filter_by(nethz=session['user'], burger_id=burger_id).first():
return die('You have already liked this burger.')
# Add vote
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