aboutsummaryrefslogtreecommitdiff
path: root/qc_app/db
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-04-12 09:13:20 +0300
committerFrederick Muriuki Muriithi2024-04-12 09:16:13 +0300
commit09b4b70aae5e65516c766882118a897c75a44974 (patch)
tree82f195fbf101bdec1fef88f4571f369e09a520d5 /qc_app/db
parent27a39c8465a49db5e65f83c36e531ea1f7769682 (diff)
downloadgn-uploader-09b4b70aae5e65516c766882118a897c75a44974.tar.gz
Provide tissue-id details to probeset dataset templates
Diffstat (limited to 'qc_app/db')
-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)