File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
gramps_webapi/api/resources Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5555)
5656
5757# from gramps.gen.lib.serialize import to_json
58- from gramps .gen .lib .json_utils import object_to_string
58+ from gramps .gen .lib .json_utils import object_to_string , remove_object
5959from gramps .gen .lib .primaryobj import BasicPrimaryObject as GrampsObject
6060from gramps .gen .plug import BasePluginManager
6161from gramps .gen .relationship import get_relationship_calculator
@@ -1148,8 +1148,8 @@ def transaction_to_json(transaction: DbTxn) -> TransactionJson:
11481148 "type" : trans_dict [action ],
11491149 "handle" : handle ,
11501150 "_class" : obj_cls_name ,
1151- "old" : None if old_data is None else dict (old_data ),
1152- "new" : None if new_data is None else dict (new_data ),
1151+ "old" : None if old_data is None else remove_object (old_data ),
1152+ "new" : None if new_data is None else remove_object (new_data ),
11531153 }
11541154 out .append (item )
11551155 return out
You can’t perform that action at this time.
0 commit comments