mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Allow the empty string when writing to bool custom columns. Bulk edit uses the empty string for None, at least in this case.
This commit is contained in:
parent
215f86ccd2
commit
62c78290c1
@ -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