aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-06-02 12:37:39 -0500
committerFrederick Muriuki Muriithi2025-06-02 12:37:39 -0500
commit68e5c8a8206ce1ba16c281b89b9a57c2a88a6615 (patch)
tree97e5c533f7675eccc59a9e03302a1608bc8e3b4a
parent5f33d1046569ede201711f65970d658db8a148b8 (diff)
downloadgn-uploader-68e5c8a8206ce1ba16c281b89b9a57c2a88a6615.tar.gz
Update placeholder function
We'll probably provide a token to use to update the authorisation for the new data. The commit also explicitly raises a `NotImplement` exception for now.
-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