From fe7715e762d9473f4c133383d7df3b71b9fdfdb6 Mon Sep 17 00:00:00 2001 From: Aaron Collier Date: Tue, 1 Oct 2024 16:15:32 -0700 Subject: [PATCH] Remove extra list flattening --- dlme_airflow/drivers/iiif_json_v3.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlme_airflow/drivers/iiif_json_v3.py b/dlme_airflow/drivers/iiif_json_v3.py index b200b7ec..c1ef07d3 100644 --- a/dlme_airflow/drivers/iiif_json_v3.py +++ b/dlme_airflow/drivers/iiif_json_v3.py @@ -133,9 +133,8 @@ def _extract_manifest_metadata( output.update({name: _flatten_list([output[name], metadata_value])}) else: output[name] = metadata_value - - # flatten any nested lists into a single list - return {k: list(_flatten_list(v)) for (k, v) in output.items()} + + return output def _get_partition(self, i) -> pd.DataFrame: # if we are over the defined limit return an empty DataFrame right away