diff --git a/bin/litscan-create-xml-metadata.py b/bin/litscan-create-xml-metadata.py index f619bb12..95e31285 100755 --- a/bin/litscan-create-xml-metadata.py +++ b/bin/litscan-create-xml-metadata.py @@ -79,7 +79,7 @@ def main(conn_string, filename, output): database = line[1] # get hit_count - cursor.execute("SELECT hit_count FROM litscan_job WHERE job_id=%s", job_id.lower()) + cursor.execute("SELECT hit_count FROM litscan_job WHERE job_id='{0}'".format(job_id.lower())) result = cursor.fetchone() hit_count = str(result[0]) if result else ""