diff options
author | BonfaceKilz | 2022-03-11 11:36:41 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-03-12 15:33:09 +0300 |
commit | f885cfac9c827a16297b981b674888a1d1a4a2e6 (patch) | |
tree | d32d3301a3805957d55ec0c3fdb87b2ef8c49eed | |
parent | 78f22407ee73c89eb7477e7e025c37c671037ab0 (diff) | |
download | genenetwork3-f885cfac9c827a16297b981b674888a1d1a4a2e6.tar.gz |
Store the first element as strain_id
-rw-r--r-- | gn3/db/sample_data.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/db/sample_data.py b/gn3/db/sample_data.py index c697de0..b2d6aed 100644 --- a/gn3/db/sample_data.py +++ b/gn3/db/sample_data.py @@ -121,7 +121,7 @@ def get_sample_data_ids(conn: Any, publishxref_id: int, publishdata_id, inbredset_id = cursor.fetchone() cursor.execute("SELECT Id FROM Strain WHERE Name = %s", (strain_name,)) - strain_id = cursor.fetchone() + strain_id = cursor.fetchone()[0] return (strain_id, publishdata_id, inbredset_id) |