From 03b2ee98a1a2da648684e5a1a02c7f8c5b45ddd8 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 24 Sep 2024 10:31:48 -0500 Subject: typing: Fix type errors --- uploader/platforms/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uploader/platforms') diff --git a/uploader/platforms/models.py b/uploader/platforms/models.py index adad0b2..4b690bb 100644 --- a/uploader/platforms/models.py +++ b/uploader/platforms/models.py @@ -13,7 +13,7 @@ def platforms_by_species( """Retrieve platforms by the species""" _query = ("SELECT * FROM GeneChip WHERE SpeciesId=%s " "ORDER BY GeneChipName ASC") - if bool(limit) and limit > 0: + if bool(limit) and limit > 0:# type: ignore[operator] _query = f"{_query} LIMIT {limit} OFFSET {offset}" with conn.cursor(cursorclass=DictCursor) as cursor: cursor.execute(_query, (speciesid,)) -- cgit v1.2.3