diff options
author | Frederick Muriuki Muriithi | 2025-06-09 14:38:29 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-06-09 14:38:29 -0500 |
commit | 0cbf07162e4669f43301f3b35b6f062a00d2ad29 (patch) | |
tree | cab8c901fdd6799f282bbc2e6128d03c7c1caabc /scripts | |
parent | 17c53d7544e87b5bc295d43bded376179304ca32 (diff) | |
download | gn-uploader-0cbf07162e4669f43301f3b35b6f062a00d2ad29.tar.gz |
Compute the data_link_ids from the request results.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/load_phenotypes_to_db.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/load_phenotypes_to_db.py b/scripts/load_phenotypes_to_db.py index a76bee1..223a435 100644 --- a/scripts/load_phenotypes_to_db.py +++ b/scripts/load_phenotypes_to_db.py @@ -312,10 +312,11 @@ def update_auth(authserver, token, species, population, dataset, xrefdata): return mrequests.post( authserveruri("/auth/resource/data/link"), headers=headers, - data={ + json={ "dataset_type": "phenotype", "resource_id": resource["resource_id"], - "data_link_ids": [item["data_link_id"] for item in linkeddata] + "data_link_ids": [ + item["data_link_id"] for item in linkeddata["traits"]] }).then(lambda attc: (user, linkeddata, resource, attc)) raise NotImplementedError("Please implement this!") |