diff options
author | zsloan | 2023-08-02 18:55:00 +0000 |
---|---|---|
committer | zsloan | 2023-08-17 14:54:42 -0500 |
commit | 516dd9bf9ab59110897985cc57b9bb8d9c7907d0 (patch) | |
tree | afeea396e865da0f6448548ece35d53d44f96309 /gn3/db | |
parent | a5094f9de3061e5bbab2c548399fc2477ae4fd61 (diff) | |
download | genenetwork3-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.py | 2 |
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}) |