mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Cleanup previous PR
This commit is contained in:
parent
74b9f66d02
commit
e9e19fe6de
@ -2360,7 +2360,7 @@ class Cache:
|
|||||||
fm = self.field_metadata.get(f, None)
|
fm = self.field_metadata.get(f, None)
|
||||||
if fm and fm['datatype'] == 'composite' and fm['is_multiple']:
|
if fm and fm['datatype'] == 'composite' and fm['is_multiple']:
|
||||||
sep = fm['is_multiple'].get('cache_to_list', ',')
|
sep = fm['is_multiple'].get('cache_to_list', ',')
|
||||||
return (list(set(v.strip() for v in val.split(sep) if v.strip())))
|
return list({v.strip() for v in val.split(sep) if v.strip()})
|
||||||
return val
|
return val
|
||||||
|
|
||||||
@read_api
|
@read_api
|
||||||
|
Loading…
x
Reference in New Issue
Block a user