about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--scripts/load_phenotypes_to_db.py5
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!")