mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 06:43:41 +02:00
Fix regression in 0.8.30 that broke bulk conversion of a single book. Fixes #902506 (Error if trying to bulk convert with one book selected)
This commit is contained in:
parent
586b2f6ede
commit
9972090f0c
1 changed files with 5 additions and 1 deletions
|
|
@ -1089,8 +1089,12 @@ def has_conversion_options(self, ids, format='PIPE'):
|
|||
ids = tuple(ids)
|
||||
if len(ids) > 50000:
|
||||
return True
|
||||
if len(ids) == 1:
|
||||
ids = '(%d)'%ids[0]
|
||||
else:
|
||||
ids = repr(ids)
|
||||
return self.conn.get('''
|
||||
SELECT data FROM conversion_options WHERE book IN %r AND
|
||||
SELECT data FROM conversion_options WHERE book IN %s AND
|
||||
format=? LIMIT 1'''%(ids,), (format,), all=False) is not None
|
||||
|
||||
def delete_conversion_options(self, id, format, commit=True):
|
||||
|
|
|
|||
Loading…
Reference in a new issue