Skip to content

Commit

Permalink
Add Collect creator data from Europeana API
Browse files Browse the repository at this point in the history
Co-authored-by: Krystle Salazar <[email protected]>
  • Loading branch information
dryruffian and krysal authored Oct 27, 2024
1 parent db357f1 commit 6e3260b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion catalog/dags/providers/provider_api_scripts/europeana.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ def _get_filesize(self, item_data: dict) -> int:
return item_data.get("ebucoreFileByteSize")

@staticmethod
def _get_creator(self, data: dict) -> str | None:
@staticmethod
def _get_creator(data: dict) -> str | None:
creators = data.get("dcCreator", [])
if isinstance(creators, list):
if not creators: # Explicitly handle empty list
Expand Down

0 comments on commit 6e3260b

Please sign in to comment.