aboutsummaryrefslogtreecommitdiff
path: root/uploader/platforms/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/platforms/models.py')
-rw-r--r--uploader/platforms/models.py2
1 files changed, 1 insertions, 1 deletions
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,))