mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Correct implementation of ignorable_field_keys
This commit is contained in:
parent
d328d20bc6
commit
1fd6edb0d7
@ -501,13 +501,7 @@ class FieldMetadata(dict):
|
||||
return self.is_custom_field(key) or key.startswith('@')
|
||||
|
||||
def ignorable_field_keys(self):
|
||||
res = []
|
||||
for k in self._tb_cats.keys():
|
||||
fm = self._tb_cats[k]
|
||||
if fm['kind'] == 'user' or (fm['kind']=='field' and fm['is_custom'] and \
|
||||
(fm['datatype'] != 'composite')):
|
||||
res.append(k)
|
||||
return res
|
||||
return [k for k in self._tb_cats.iterkeys() if self.is_ignorable_field(k)]
|
||||
|
||||
def is_series_index(self, key):
|
||||
m = self[key]
|
||||
|
Loading…
x
Reference in New Issue
Block a user