From b985c411980660fd0ce73d7a9be5cb7599f7eb5f Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Mon, 20 Jun 2022 17:20:26 +0300 Subject: db: datasets.py: Ignore results from sparql.queryAndConvert ATM, it's very difficult to work the correct type that is returned. Ignore this for now and fix this later. --- gn3/db/datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3/db') diff --git a/gn3/db/datasets.py b/gn3/db/datasets.py index b19db53..1d2f071 100644 --- a/gn3/db/datasets.py +++ b/gn3/db/datasets.py @@ -270,7 +270,7 @@ def sparql_query(query: str) -> List[Dict[str, Any]]: sparql = SPARQLWrapper(SPARQL_ENDPOINT) sparql.setQuery(query) sparql.setReturnFormat(JSON) - return sparql.queryAndConvert()['results']['bindings'] + return sparql.queryAndConvert()['results']['bindings'] # type: ignore def dataset_metadata(accession_id: str) -> Optional[Dict[str, Any]]: """Return info about dataset with ACCESSION_ID.""" -- cgit v1.2.3