Skip to content

Commit

Permalink
fixup! WIP: Add functions for pack/unpack of all identifiers at once
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonj04 committed Nov 29, 2024
1 parent b0243cd commit 090f194
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/caselawclient/models/documents/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,13 @@ def identifiers(self) -> list[Identifier]:
return list(self._identifiers.values())

def add_identifier(self, identifier: Identifier) -> None:
"""Add an identifier to this Document's identifiers array."""
"""Add an Identifier object to this Document's list of identifiers."""

self._identifiers[identifier.uuid] = identifier

@property
def identifiers_as_etree(self) -> etree._Element:
"""Return an etree representation of all the Document's identifiers."""
identifiers_root = etree.Element("identifiers")

for identifier in self.identifiers:
Expand Down

0 comments on commit 090f194

Please sign in to comment.