aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-09-12 18:47:03 +0300
committerBonfaceKilz2024-09-12 18:50:25 +0300
commit6e23a22c4a60c9238b23d38f586f3de2aa9048f9 (patch)
treec1ee1ef15614aa3325a6bd2c861cea0f141d5d21 /gn3/api
parent82e5a814b5e0e855c467aa30d773d0927f0520ec (diff)
downloadgenenetwork3-6e23a22c4a60c9238b23d38f586f3de2aa9048f9.tar.gz
Fix pylint errors.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/gemma.py1
-rw-r--r--gn3/api/metadata_api/wiki.py2
-rw-r--r--gn3/api/rqtl.py1
3 files changed, 1 insertions, 3 deletions
diff --git a/gn3/api/gemma.py b/gn3/api/gemma.py
index 2dd53ea..abe772c 100644
--- a/gn3/api/gemma.py
+++ b/gn3/api/gemma.py
@@ -12,7 +12,6 @@ from gn3.commands import run_cmd
from gn3.fs_helpers import cache_ipfs_file
from gn3.fs_helpers import jsonfile_to_dict, assert_paths_exist
from gn3.computations.gemma import generate_gemma_cmd
-from gn3.computations.gemma import assert_paths_exist
gemma = Blueprint("gemma", __name__)
diff --git a/gn3/api/metadata_api/wiki.py b/gn3/api/metadata_api/wiki.py
index 9ea0d53..6436f3d 100644
--- a/gn3/api/metadata_api/wiki.py
+++ b/gn3/api/metadata_api/wiki.py
@@ -5,7 +5,6 @@ from typing import Any, Dict
from flask import Blueprint, request, jsonify, current_app, make_response
from gn3 import db_utils
from gn3.db import wiki
-from gn3.db.rdf import query_frame_and_compact
from gn3.db.rdf.wiki import (get_wiki_entries_by_symbol,
get_comment_history)
@@ -121,6 +120,7 @@ def get_species():
@wiki_blueprint.route("/<int:comment_id>/history", methods=["GET"])
def get_history(comment_id):
+ """Fetch all of a given comment's history given it's comment id"""
status_code = 200
response = get_comment_history(comment_id=comment_id,
sparql_uri=current_app.config["SPARQL_ENDPOINT"])
diff --git a/gn3/api/rqtl.py b/gn3/api/rqtl.py
index 68299d4..c2d988a 100644
--- a/gn3/api/rqtl.py
+++ b/gn3/api/rqtl.py
@@ -6,7 +6,6 @@ from flask import current_app
from flask import jsonify
from flask import request
-from gn3.debug import __pk__
from gn3.computations.rqtl import generate_rqtl_cmd, process_rqtl_mapping, \
process_rqtl_pairscan, process_perm_output
from gn3.fs_helpers import assert_paths_exist, get_tmpdir