Unverified Commit 92233a85 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

fix variable assignment


Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent 9b6cd736
Pipeline #16003 passed with stages
in 4 minutes and 37 seconds
......@@ -88,9 +88,9 @@ def _get_values_from_digital_object(msg):
def _create_sql_stmt(table_name, record, fields):
db_fields, db_values = [(dbField, record[dbField])
for dbField in fields
if dbField in record and record[dbField] is not None]
(db_fields, db_values) = [(dbField, record[dbField])
for dbField in fields
if dbField in record and record[dbField] is not None]
db_fields = ','.join(db_fields)
db_values = ','.join([str(db_value)
if isinstance(db_value, numbers.Number)
......
Supports Markdown
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