Skip to content

Commit

Permalink
Address comments in ead.py
Browse files Browse the repository at this point in the history
* Update syntax for 'create_string_*' and 'create_list_*' methods
  to use keyword args
  • Loading branch information
jonavellecuerdo committed May 31, 2024
1 parent 4962dbb commit 29e6d6e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions transmogrifier/sources/xml/ead.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,9 @@ def get_contents(cls, source_record: Tag) -> list[str] | None:
"arrangement", recursive=False
):
contents.extend(
cls.create_list_from_mixed_value(arrangement_element, ["head"])
cls.create_list_from_mixed_value(
arrangement_element, skipped_elements=["head"]
)
)
return contents or None

Expand All @@ -405,7 +407,7 @@ def get_contributors(cls, source_record: Tag) -> list[timdex.Contributor] | None
)
if (
contributor_name := cls.create_string_from_mixed_value(
contributor_element, " "
contributor_element, separator=" "
)
)
]
Expand Down

0 comments on commit 29e6d6e

Please sign in to comment.