about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--scripts/load_phenotypes_to_db.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/load_phenotypes_to_db.py b/scripts/load_phenotypes_to_db.py
index cd46b01..9ad3a93 100644
--- a/scripts/load_phenotypes_to_db.py
+++ b/scripts/load_phenotypes_to_db.py
@@ -182,9 +182,9 @@ def cross_reference_phenotypes_publications_and_data(
     return tuple()
 
 
-def update_auth(user, species, population, dataset, phenos):
+def update_auth(token, species, population, dataset, phenos):
     """Grant the user access to their data."""
-    pass
+    raise NotImplemented("Please implement this!")
 
 
 def load_data(conn: mysqldb.Connection, job: dict) -> int:
@@ -261,8 +261,8 @@ def load_data(conn: mysqldb.Connection, job: dict) -> int:
                                 control_data=_control_data,
                                 filesdir=_outdir)
     # 6. If entirely new data, update authorisations (break this down)
-    update_auth(_user, _species, _population, _dataset, _phenos)
     logger.info("Updating authorisation.")
+    update_auth(_token, _species, _population, _dataset, _phenos)
     return 0