mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 09:23:04 +02:00
Fix deleting multiple users causing an error
This commit is contained in:
parent
34897ec953
commit
82914e5a0d
1 changed files with 1 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ def user_data(self, users):
|
|||
c = self.conn.cursor()
|
||||
remove = self.all_user_names - set(users)
|
||||
if remove:
|
||||
c.executemany('DELETE FROM users WHERE name=?', (remove,))
|
||||
c.executemany('DELETE FROM users WHERE name=?', [(n,) for n in remove])
|
||||
for name, data in users.iteritems():
|
||||
res = serialize_restriction(data['restriction'])
|
||||
r = 'y' if data['readonly'] else 'n'
|
||||
|
|
|
|||
Loading…
Reference in a new issue