aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2021-08-02 21:44:30 +0300
committerBonfaceKilz2021-08-03 15:49:50 +0300
commite200245b2a1666b7a16f4484891c7c2b143fefe9 (patch)
treea1ff2affae681b7b7cece6913fb414199ee65268
parent2c0b0d7132ff67709de13d986a92293b68e275e2 (diff)
downloadgenenetwork2-e200245b2a1666b7a16f4484891c7c2b143fefe9.tar.gz
wqflask: views: Rename endpoint to "/admin/data-sample/diffs/"
-rw-r--r--wqflask/wqflask/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index 760d5947..1a8536ac 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -1391,7 +1391,7 @@ def get_sample_data_as_csv(trait_name: int, phenotype_id: int):
)
-@app.route("/data/approve/")
+@app.route("/admin/data-sample/diffs/")
def display_diffs_admin():
DIFF_DIR = "/tmp/sample-data/diffs"
files = []
@@ -1438,7 +1438,7 @@ def approve_data(name):
os.rename(os.path.join("/tmp/sample-data/diffs", name),
os.path.join("/tmp/sample-data/diffs",
f"{name}.approved"))
- return redirect("/data/approve/")
+ return redirect("/admin/data-sample/diffs/")
@app.route("/display-file/<name>")