diff options
author | Munyoki Kilyungi | 2024-08-26 15:33:20 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-08-26 15:35:33 +0300 |
commit | a0681e15a6c3df598a4cf7a1bb31576f58fe7efc (patch) | |
tree | 2d58288511da69c57f7b476a3d060939c7b25f81 /gn3 | |
parent | bf4d04edec08ae437d0cecc533266d50ecb711af (diff) | |
download | genenetwork3-a0681e15a6c3df598a4cf7a1bb31576f58fe7efc.tar.gz |
Fix mypy errors.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/api/metadata_api/wiki.py | 8 |
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 |