From ba8cca721e38b4fbabf2d74fb9206c52200ae1fb Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Mon, 27 Nov 2023 12:30:16 +0300 Subject: Rename metadata/genotype -> metadata/genotypes. * wqflask/wqflask/views.py (get_genotype): Rename genotype -> genotypes. Signed-off-by: Munyoki Kilyungi --- wqflask/wqflask/views.py | 4 ++-- 1 file 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/", methods=('GET',)) +@app.route("/genotypes/", 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", -- cgit v1.2.3