Unverified Commit 6ce34283 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

fix string escape


Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent 3ce92962
Pipeline #19190 passed with stages
in 2 minutes and 7 seconds
......@@ -47,7 +47,7 @@ class Indexer:
if dbField in record and record[dbField] is not None]
db_values = [str(record[db_field])
if isinstance(record[db_field], numbers.Number)
else "'{}'".format(MySQLdb.escape_string(record[db_field]))
else MySQLdb.escape_string(record[db_field])
for db_field in db_fields]
key_value = \
", ".join([k + "=" + v for (k, v) in zip(db_fields, db_values) if k != 'sig'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment