From 17c53d7544e87b5bc295d43bded376179304ca32 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 9 Jun 2025 14:18:01 -0500 Subject: Fix bug in data for creating a new resource. --- scripts/load_phenotypes_to_db.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/load_phenotypes_to_db.py b/scripts/load_phenotypes_to_db.py index 2b024c1..a76bee1 100644 --- a/scripts/load_phenotypes_to_db.py +++ b/scripts/load_phenotypes_to_db.py @@ -300,12 +300,12 @@ def update_auth(authserver, token, species, population, dataset, xrefdata): return mrequests.post( authserveruri("/auth/resource/create"), headers=headers, - data={ + json={ "resource_category": category["resource_category_id"], - "resource_name": (f"{user['email']}—{dataset['name']}—{now}—" + "resource_name": (f"{user['email']}—{dataset['Name']}—{now}—" f"{len(xrefdata)} phenotypes"), "public": "off" - }).then(lambda cr_results: (user, linkeddata, resource)) + }).then(lambda cr_results: (user, linkeddata, cr_results)) def __attach_data_to_resource__(user, linkeddata, resource): logger.debug("… attaching data to authorisation resource object") -- cgit 1.4.1