aboutsummaryrefslogtreecommitdiff
path: root/gn3/api/metadata_api/wiki.py
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-08-29 22:40:46 +0300
committerBonfaceKilz2024-09-05 16:39:14 +0300
commitab4e918da28ec09bf39ad38d79200b68baf28f17 (patch)
tree8ac0c6cde3c5f615f77c6252f2d193d1fd315e3b /gn3/api/metadata_api/wiki.py
parentdb8fb57d9e1c6962b7653213b44e784c84446c21 (diff)
downloadgenenetwork3-ab4e918da28ec09bf39ad38d79200b68baf28f17.tar.gz
Ignore type error and add a FIXME stub.
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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gn3/api/metadata_api/wiki.py b/gn3/api/metadata_api/wiki.py
index b9942a0..36ea03e 100644
--- a/gn3/api/metadata_api/wiki.py
+++ b/gn3/api/metadata_api/wiki.py
@@ -95,6 +95,9 @@ def get_wiki(comment_id: int):
TODO: fetch this from RIF
"""
with db_utils.database_connection(current_app.config["SQL_URI"]) as conn:
+ # FIXME: error: Argument 2 to "get_latest_comment" has
+ # incompatible type "int"; expected "str" [arg-type]
+ # type: ignore
return jsonify(wiki.get_latest_comment(conn, comment_id))
return jsonify(error="Error fetching wiki entry, most likely due to DB error!"), 500