diff --git a/inspirehep/modules/workflows/tasks/manual_merging.py b/inspirehep/modules/workflows/tasks/manual_merging.py index d0cdc40ff3..6bd1a521be 100644 --- a/inspirehep/modules/workflows/tasks/manual_merging.py +++ b/inspirehep/modules/workflows/tasks/manual_merging.py @@ -124,7 +124,7 @@ def _merge_roots_hep(new_uuid, head_roots, update_roots): dict( source=update_root["source"], record_uuid=new_uuid, - json=update_root["json_data"], + json=update_root["json"], ) ) requests.delete( @@ -180,7 +180,7 @@ def _merge_roots(new_uuid, head_roots, update_roots): data={ "record_uuid": head_root["record_uuid"], "source": head_root["source"], - "json": head_root["json_data"], + "json": head_root["json"], }, ) if response.status_code != 200: diff --git a/tests/integration/workflows/test_workflows_manual_merge.py b/tests/integration/workflows/test_workflows_manual_merge.py index 46ae22e3c3..5dc460cd87 100644 --- a/tests/integration/workflows/test_workflows_manual_merge.py +++ b/tests/integration/workflows/test_workflows_manual_merge.py @@ -301,7 +301,7 @@ def test_save_roots_using_hep_root_table_api(workflow_app): { "created": "20-02-2012 14:35:34.2345", "updated": "20-02-2012 14:35:34.2345", - "json_data": {"version": "original"}, + "json": {"version": "original"}, "record_uuid": str(head.id), "source": "arxiv", } @@ -310,14 +310,14 @@ def test_save_roots_using_hep_root_table_api(workflow_app): { "created": "20-02-2012 14:35:34.2345", "updated": "20-02-2012 14:35:34.2345", - "json_data": {"version": "updated"}, + "json": {"version": "updated"}, "record_uuid": str(update.id), "source": "arxiv", }, { "created": "20-02-2012 15:35:34.2345", "updated": "20-02-2012 15:35:34.2345", - "json_data": {"version": "updated"}, + "json": {"version": "updated"}, "record_uuid": str(update.id), "source": "publisher", },