From 8b24e67e2e097ca8a77a1d93652272b749d33d6d Mon Sep 17 00:00:00 2001 From: Kevin De Pelseneer Date: Thu, 7 Nov 2024 17:42:58 +0100 Subject: [PATCH] Fix Receipt generation --- mars-cli/mars_lib/submit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mars-cli/mars_lib/submit.py b/mars-cli/mars_lib/submit.py index dc347c9..ba09b89 100644 --- a/mars-cli/mars_lib/submit.py +++ b/mars-cli/mars_lib/submit.py @@ -129,7 +129,7 @@ def submission( f"Submission to {TargetRepository.ENA} was successful. Result:\n{ena_result.json()}" ) # Update `isa_json`, based on the receipt returned - ena_mars_receipt = RepositoryResponse.from_json(str(ena_result.content)) + ena_mars_receipt = RepositoryResponse.model_validate(json.loads(ena_result.content)) isa_json = update_isa_json(isa_json, ena_mars_receipt) if DEBUG: save_step_to_file(time_stamp, "2_after_ena", isa_json)