mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-30 23:00:21 -04:00
Fix deleting multiple users causing an error
This commit is contained in:
parent
34897ec953
commit
82914e5a0d
@ -175,7 +175,7 @@ class UserManager(object):
|
||||
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…
x
Reference in New Issue
Block a user