From 516dd9bf9ab59110897985cc57b9bb8d9c7907d0 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 2 Aug 2023 18:55:00 +0000 Subject: Remove Id select from probeset metadata query, since it's included in cols --- gn3/db/probesets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3') diff --git a/gn3/db/probesets.py b/gn3/db/probesets.py index 57ae452..910f05b 100644 --- a/gn3/db/probesets.py +++ b/gn3/db/probesets.py @@ -70,7 +70,7 @@ def fetch_probeset_metadata_by_name(conn: DBConnection, name: str) -> dict: """Fetch a ProbeSet's metadata by its `name`.""" with conn.cursor(cursorclass=DictCursor) as cursor: cols = ", ".join(mapping_to_query_columns(probeset_mapping)) - cursor.execute((f"SELECT Id as id, {cols} " + cursor.execute((f"SELECT {cols} " "FROM ProbeSet " "WHERE Name = %(name)s"), {"name": name}) -- cgit v1.2.3