aboutsummaryrefslogtreecommitdiff
path: root/gn3/api/metadata_api/wiki.py
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-08-26 15:33:20 +0300
committerBonfaceKilz2024-08-26 15:35:33 +0300
commita0681e15a6c3df598a4cf7a1bb31576f58fe7efc (patch)
tree2d58288511da69c57f7b476a3d060939c7b25f81 /gn3/api/metadata_api/wiki.py
parentbf4d04edec08ae437d0cecc533266d50ecb711af (diff)
downloadgenenetwork3-a0681e15a6c3df598a4cf7a1bb31576f58fe7efc.tar.gz
Fix mypy errors.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api/metadata_api/wiki.py')
-rw-r--r--gn3/api/metadata_api/wiki.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gn3/api/metadata_api/wiki.py b/gn3/api/metadata_api/wiki.py
index c84578a..cc5fc22 100644
--- a/gn3/api/metadata_api/wiki.py
+++ b/gn3/api/metadata_api/wiki.py
@@ -75,13 +75,13 @@ def get_wiki_entries(symbol: str):
status_code = 200
response = get_wiki_entries_by_symbol(
symbol=symbol,
- sparql_uri=current_app.config.get("SPARQL_ENDPOINT"))
+ sparql_uri=current_app.config["SPARQL_ENDPOINT"])
data = response.get("data")
if not data:
data = {}
status_code = 404
if content_type == "application/ld+json":
- response = make_response(response)
- response.headers["Content-Type"] = "application/ld+json"
- return response, status_code
+ payload = make_response(response)
+ payload.headers["Content-Type"] = "application/ld+json"
+ return payload, status_code
return jsonify(data), status_code