mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix tag id_set being modified when serializing to JSON
This commit is contained in:
parent
4b7ed56566
commit
e4f934b8b9
@ -79,7 +79,7 @@ def category_item_as_json(x, clear_rating=False):
|
||||
for k in _include_fields:
|
||||
val = getattr(x, k)
|
||||
if val is not None:
|
||||
ans[k] = val
|
||||
ans[k] = val.copy() if isinstance(val, set) else val
|
||||
if x.use_sort_as_name:
|
||||
ans['name'] = ans['sort']
|
||||
if x.original_name != ans['name']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user