Skip to content

Commit

Permalink
Fix functions in tasks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub authored Feb 12, 2025
1 parent 771426c commit 54d9fa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gramps_webapi/api/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from flask import current_app
from gramps.gen.db import DbTxn
#from gramps.gen.lib.serialize import from_json, to_json
from gramps.gen.lib.json_utils import string_to_object, object_to_dict
from gramps.gen.lib.json_utils import data_to_object, object_to_dict
from gramps.gen.db.base import DbReadBase
from gramps.gen.errors import HandleError
from gramps.gen.merge.diff import diff_items
Expand Down Expand Up @@ -455,7 +455,7 @@ def process_transactions(
abort_with_message(409, "Object has changed")
new_data = item["new"]
if new_data:
new_obj = string_to_object(new_data) # from_json(json.dumps(new_data))
new_obj = data_to_object(new_data) # from_json(json.dumps(new_data))
if trans_type == "delete":
handle_delete(trans, class_name, handle)
if (
Expand Down

0 comments on commit 54d9fa4

Please sign in to comment.