diff options
author | Munyoki Kilyungi | 2023-11-27 12:30:16 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-11-27 12:32:27 +0300 |
commit | ba8cca721e38b4fbabf2d74fb9206c52200ae1fb (patch) | |
tree | 0e883c6360ff6a9b2b189af3e2d61415a492b00d | |
parent | 79f4e095e790afa54c41d9fe5c1633b6f0ef9c61 (diff) | |
download | genenetwork2-ba8cca721e38b4fbabf2d74fb9206c52200ae1fb.tar.gz |
Rename metadata/genotype -> metadata/genotypes.
* wqflask/wqflask/views.py (get_genotype): Rename genotype ->
genotypes.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-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 5b6c1426..0bec85f4 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -1145,12 +1145,12 @@ def get_phenotype(name): ) -@app.route("/genotype/<name>", methods=('GET',)) +@app.route("/genotypes/<name>", methods=('GET',)) def get_genotype(name): metadata = requests.get( urljoin( GN3_LOCAL_URL, - f"/api/metadata/genotype/{name}") + f"/api/metadata/genotypes/{name}") ).json() return render_template( "genotype.html", |