mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 15:04:08 +02:00
Make floats work in composite columns
This commit is contained in:
parent
347a766ba7
commit
d8fc285b70
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ def get_value(self, key, args, kwargs):
|
|||
b = self.book.get_user_metadata(key, False)
|
||||
if b and b['datatype'] == 'int' and self.book.get(key, 0) == 0:
|
||||
v = ''
|
||||
elif b and b['datatype'] == 'float' and b.get(key, 0.0) == 0.0:
|
||||
elif b and b['datatype'] == 'float' and self.book.get(key, 0.0) == 0.0:
|
||||
v = ''
|
||||
else:
|
||||
ign, v = self.book.format_field(key.lower(), series_with_index=False)
|
||||
|
|
|
|||
Loading…
Reference in a new issue