From a0681e15a6c3df598a4cf7a1bb31576f58fe7efc Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Mon, 26 Aug 2024 15:33:20 +0300 Subject: Fix mypy errors. Signed-off-by: Munyoki Kilyungi --- gn3/api/metadata_api/wiki.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gn3/api/metadata_api/wiki.py') 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 -- cgit v1.2.3