aboutsummaryrefslogtreecommitdiff
path: root/uploader/phenotypes/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-03-21 13:18:37 -0500
committerFrederick Muriuki Muriithi2025-03-21 13:19:32 -0500
commitc281820ea0ccb8c078c83deca128010b3df95dce (patch)
treeee781dbf894dd694f042b0c567c9279094b0ea82 /uploader/phenotypes/views.py
parent8b6ae4a103df26e923143ef3fbecb84ac4c74d2f (diff)
downloadgn-uploader-c281820ea0ccb8c078c83deca128010b3df95dce.tar.gz
Rename endpoint: Distinguish edit download from other downloads.
Diffstat (limited to 'uploader/phenotypes/views.py')
-rw-r--r--uploader/phenotypes/views.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index 407493c..2f6e926 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -866,16 +866,17 @@ def process_phenotype_data_for_download(pheno: dict) -> dict:
}
}
+
@phenotypesbp.route(
"<int:species_id>/populations/<int:population_id>/phenotypes/datasets"
- "/<int:dataset_id>/download",
+ "/<int:dataset_id>/edit-download",
methods=["POST"])
@require_login
@with_dataset(
species_redirect_uri="species.populations.phenotypes.index",
population_redirect_uri="species.populations.phenotypes.select_population",
redirect_uri="species.populations.phenotypes.list_datasets")
-def download_phenotype_data(# pylint: disable=[unused-argument]
+def edit_download_phenotype_data(# pylint: disable=[unused-argument]
species: dict,
population: dict,
dataset: dict,