aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/db/sample_data.py2
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)