diff options
author | BonfaceKilz | 2021-08-02 21:44:30 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-08-03 15:49:50 +0300 |
commit | e200245b2a1666b7a16f4484891c7c2b143fefe9 (patch) | |
tree | a1ff2affae681b7b7cece6913fb414199ee65268 /wqflask | |
parent | 2c0b0d7132ff67709de13d986a92293b68e275e2 (diff) | |
download | genenetwork2-e200245b2a1666b7a16f4484891c7c2b143fefe9.tar.gz |
wqflask: views: Rename endpoint to "/admin/data-sample/diffs/"
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/views.py | 4 |
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>") |