aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
authorzsloan2023-08-02 18:55:00 +0000
committerzsloan2023-08-17 14:54:42 -0500
commit516dd9bf9ab59110897985cc57b9bb8d9c7907d0 (patch)
treeafeea396e865da0f6448548ece35d53d44f96309 /gn3/db
parenta5094f9de3061e5bbab2c548399fc2477ae4fd61 (diff)
downloadgenenetwork3-516dd9bf9ab59110897985cc57b9bb8d9c7907d0.tar.gz
Remove Id select from probeset metadata query, since it's included in cols
Diffstat (limited to 'gn3/db')
-rw-r--r--gn3/db/probesets.py2
1 files changed, 1 insertions, 1 deletions
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})