mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
abd0186ff8
@ -94,7 +94,7 @@ def adapt_bool(x):
|
|||||||
x = True
|
x = True
|
||||||
elif x == 'false':
|
elif x == 'false':
|
||||||
x = False
|
x = False
|
||||||
elif x == 'none':
|
elif x == 'none' or x == '':
|
||||||
x = None
|
x = None
|
||||||
else:
|
else:
|
||||||
x = bool(int(x))
|
x = bool(int(x))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user