Commit 2568d625 authored by Matthias's avatar Matthias

change json transformation

parent 9c4230da
Pipeline #22329 passed with stages
in 2 minutes and 15 seconds
......@@ -74,7 +74,7 @@ class MediaUrlUpdateService(Resource):
def _update_records_in_database(self, records_to_update):
records_to_update_json = json.load(records_to_update)
for record in records_to_update:
for record in records_to_update_json:
try:
sql_stmt = 'UPDATE entities ' +\
'SET uri = "' + record['uri'] + '" ' +\
......
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