diff options
-rw-r--r-- | scripts/load_phenotypes_to_db.py | 6 |
1 files changed, 3 insertions, 3 deletions
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") |