aboutsummaryrefslogtreecommitdiff
path: root/qc_app/db/tissues.py
diff options
context:
space:
mode:
Diffstat (limited to 'qc_app/db/tissues.py')
-rw-r--r--qc_app/db/tissues.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/qc_app/db/tissues.py b/qc_app/db/tissues.py
index 062e824..9fe7bab 100644
--- a/qc_app/db/tissues.py
+++ b/qc_app/db/tissues.py
@@ -11,11 +11,10 @@ def all_tissues(conn: mdb.Connection) -> tuple[dict, ...]:
return tuple(dict(row) for row in cursor.fetchall())
-def tissue_by_id(conn: mdb.Connection, tissueid: int) -> Optional[dict]:
+def tissue_by_id(conn: mdb.Connection, tissueid) -> Optional[dict]:
"""Retrieve a tissue by its ID"""
with conn.cursor(cursorclass=DictCursor) as cursor:
- cursor.execute("SELECT * FROM Tissue WHERE Id=%s",
- (tissueid,))
+ cursor.execute("SELECT * FROM Tissue WHERE Id=%s", (tissueid,))
result = cursor.fetchone()
if bool(result):
return dict(result)