aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-08-27 11:46:35 +0300
committerBonfaceKilz2024-08-29 14:51:30 +0300
commit7fec75dcaf6214eb8d42e3ab92e9866589264025 (patch)
treef35201c09f444e5b567aee8db3ae7472b910367c /gn2/wqflask
parent8465ba42c2a284fcd1311caca7c8372307015dbe (diff)
downloadgenenetwork2-7fec75dcaf6214eb8d42e3ab92e9866589264025.tar.gz
Add type annotation for symbol.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py
index c13d29e4..baed268b 100644
--- a/gn2/wqflask/views.py
+++ b/gn2/wqflask/views.py
@@ -1220,8 +1220,8 @@ def display_diffs_users():
files=files)
-@app.route("/genewiki/<symbol>")
-def display_genewiki_page(symbol):
+@app.route("/genewiki/<string:symbol>")
+def display_genewiki_page(symbol: str):
"""Fetch GeneRIF metadata from GN3 and display it"""
wiki = requests.get(
urljoin(