From 8acf2e83b397f891410e68f8227a0d91cc289e56 Mon Sep 17 00:00:00 2001 From: Julien Moutinho Date: Wed, 10 Sep 2014 19:38:47 +0200 Subject: [PATCH] fix SQL query argument passing --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index e3f0947..9012c64 100755 --- a/main.py +++ b/main.py @@ -344,7 +344,7 @@ def admin_user_edit(iduser): g.db.execute('delete from user_group where id_user = ? and id_group = ?', [iduser, group['id']]) g.db.commit() for group in groups: - group = query_db('select id from groups where id = ?', group, one=True) + group = query_db('select id from groups where id = ?', [group], one=True) if group is None: flash(u'Le groupe portant l\'id %s n\'existe pas.' % group, 'warning') else: -- 2.20.1