Skip to content

Commit

Permalink
Remove extra list flattening
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-collier committed Oct 1, 2024
1 parent f99485f commit fe7715e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dlme_airflow/drivers/iiif_json_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe7715e

Please sign in to comment.