Skip to content

Commit ac92e6a

Browse files
committed
oops
1 parent 59a0d7e commit ac92e6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiita_db/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ def convert_to_id(value, table, conn_handler=None):
908908
if 'status' in table:
909909
sql = "SELECT {0}_id FROM qiita.{0} WHERE status = %s".format(table)
910910
else:
911-
"SELECT {0}_id FROM qiita.{0} WHERE {0} = %s".format(table)
911+
sql = "SELECT {0}_id FROM qiita.{0} WHERE {0} = %s".format(table)
912912
_id = conn_handler.execute_fetchone(sql, (value, ))
913913
if _id is None:
914914
raise IncompetentQiitaDeveloperError("%s not valid for table %s"

0 commit comments

Comments
 (0)