diff options
-rw-r--r-- | wqflask/wqflask/views.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 0bec85f4..34574c10 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -1133,7 +1133,10 @@ def get_publication(name): @app.route("/phenotypes/<name>", methods=('GET',)) -def get_phenotype(name): +@app.route("/phenotypes/<group>/<name>", methods=('GET',)) +def get_phenotype(name, group=None): + if group: + name = f"{group}_{name}" metadata = requests.get( urljoin( GN3_LOCAL_URL, |