diff options
Diffstat (limited to 'topics/queries-and-prepared-statements-in-python.gmi')
-rw-r--r-- | topics/queries-and-prepared-statements-in-python.gmi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/topics/queries-and-prepared-statements-in-python.gmi b/topics/queries-and-prepared-statements-in-python.gmi index 642ed96..969c27f 100644 --- a/topics/queries-and-prepared-statements-in-python.gmi +++ b/topics/queries-and-prepared-statements-in-python.gmi @@ -29,7 +29,7 @@ curr.execute( WHERE Strain.Name IN ({}) and Strain.SpeciesId=Species.Id and Species.name = %s - """.format(", ".join(sample_data_keys)), + """.format(", ".join(["%s"] * len(sample_data_keys))), (sample_data_keys + (dataset.group.species,))) ``` |