Commit ace0d3d7 authored by Arnaud Delcasse's avatar Arnaud Delcasse

Fix error when retrieving groups for the display user page

parent cf3f4e59
......@@ -182,7 +182,7 @@ def login_key(userid, key):
def user(userid):
if int(userid) != get_userid():
abort(401)
groups = query_db('select * from groups join user_group on id=id_group where id_user = ?', userid)
groups = query_db('select * from groups join user_group on id=id_group where id_user = ?', (userid,))
return render_template('user.html', groups=groups)
@app.route('/user/settings/<userid>', methods=['GET', 'POST'])
......
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