-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FCL 582 Get related documents (e.g. Press Summary for Judgment) #846
Conversation
b867498
to
b7a4d18
Compare
b7a4d18
to
b1d72e5
Compare
b1d72e5
to
2aa2df1
Compare
Open questions: |
@@ -21,8 +21,10 @@ class IdentifierResolutions(list["IdentifierResolution"]): | |||
def from_marklogic_output(table: list[str]) -> "IdentifierResolutions": | |||
return IdentifierResolutions(list(IdentifierResolution.from_marklogic_output(row) for row in table)) | |||
|
|||
def published(self) -> "IdentifierResolutions": | |||
def published(self, only_published: bool = True) -> "IdentifierResolutions": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Essentially I think x.published(only_published=only_published)
is cleaner than
if only_published:
new_x = x.published()
else:
new_x = x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused by what this is trying to achieve; isn't .published
always only_published = True
?
…ort converting DocURIStrings to MarkLogic ones
17f4241
to
32b9174
Compare
Summary of changes
https://national-archives.atlassian.net/browse/FCL-582
Checklist