mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 06:33:08 +02:00
Correct implementation of ignorable_field_keys
This commit is contained in:
parent
d328d20bc6
commit
1fd6edb0d7
1 changed files with 1 additions and 7 deletions
|
|
@ -501,13 +501,7 @@ def is_ignorable_field(self, key):
|
|||
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…
Reference in a new issue