Cleanup previous PR

This commit is contained in:
Kovid Goyal 2022-12-18 17:08:46 +05:30
parent 74b9f66d02
commit e9e19fe6de
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2360,7 +2360,7 @@ class Cache:
fm = self.field_metadata.get(f, None)
if fm and fm['datatype'] == 'composite' and fm['is_multiple']:
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
@read_api