From 2a7e8b7ffdf260a643c7fcd615c8982d3268347f Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 19 Apr 2023 15:59:26 +0300 Subject: Fix minor linting and typing issues --- gn3/auth/authorisation/data/phenotypes.py | 2 +- scripts/search_phenotypes.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gn3/auth/authorisation/data/phenotypes.py b/gn3/auth/authorisation/data/phenotypes.py index db16699..a330d4a 100644 --- a/gn3/auth/authorisation/data/phenotypes.py +++ b/gn3/auth/authorisation/data/phenotypes.py @@ -18,7 +18,7 @@ def linked_phenotype_data( linked = tuple(tuple(row[key] for key in authkeys) for row in authcursor.fetchall()) if len(linked) <= 0: - return (item for item in tuple()) + return iter(()) paramstr = "".join(["(%s, %s, %s, %s)"] * len(linked)) query = ( "SELECT spc.SpeciesId, spc.SpeciesName, iset.InbredSetId, " diff --git a/scripts/search_phenotypes.py b/scripts/search_phenotypes.py index 2f7fcf3..1bab41c 100644 --- a/scripts/search_phenotypes.py +++ b/scripts/search_phenotypes.py @@ -11,7 +11,6 @@ from datetime import datetime, timedelta import click import redis import requests -from MySQLdb.cursors import DictCursor from gn3 import jobs from gn3.auth import db as authdb -- cgit v1.2.3