Skip to content

Commit b435ba5

Browse files
committed
Small change to transaction_to_json
1 parent dafb2f9 commit b435ba5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gramps_webapi/api/resources/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
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
5959
from gramps.gen.lib.primaryobj import BasicPrimaryObject as GrampsObject
6060
from gramps.gen.plug import BasePluginManager
6161
from 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

0 commit comments

Comments
 (0)