Unverified Commit 28b7ecde authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

fix format errors

parent facbc17d
Pipeline #19814 passed with stages
in 1 minute and 52 seconds
......@@ -93,7 +93,7 @@ def _extract_thumbnail_values(msg, _access_status) -> dict:
return return_values
def _extract_digital_object_values(msg, access_status) -> dict:
def _extract_dig_obj_vals(msg, access_status) -> dict:
"""
Extract information on digital object from JSON object
"""
......@@ -292,8 +292,8 @@ class MediametadataToDB:
if _is_digital_object(record_resource):
if _is_playable(access_status):
enriched_data, error = _extract_fields(record_resource,
_extract_digital_object_values,
access_status)
_extract_dig_obj_vals,
access_status)
if enriched_data:
record_processor.digital_object_ok(record_id, enriched_data)
if _has_audio_snippet(enriched_data):
......@@ -312,8 +312,8 @@ class MediametadataToDB:
f"{access_status}")
elif _is_thumbnail(record_resource):
enriched_data, error = _extract_fields(record_resource,
_extract_thumbnail_values,
access_status)
_extract_thumbnail_values,
access_status)
if enriched_data:
record_processor.thumbnail_ok(record_id, enriched_data)
else:
......
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