aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-10-27 16:25:21 -0700
committerBryan Newbold <bnewbold@archive.org>2021-10-27 16:26:59 -0700
commit0cbfab6b85d1f098686edd62381ffffc901daece (patch)
treef92e3dfba1b780b233c6c0f3142a25e2c93cb2a0
parent4d19937ddb69cc26bb8a1e997abf21c0f910130d (diff)
downloadfuzzycat-0cbfab6b85d1f098686edd62381ffffc901daece.tar.gz
fuzzycat-0cbfab6b85d1f098686edd62381ffffc901daece.zip
matching: include contribs,files in release entity
This makes several downstream applications simpler, like showing PDF links without an additional fatcat API fetch. The 'contrib' entities may be required as part of bibliographic matching (checking the creator names as well as the release-local versions of the name) In theory we could add webcaptures,filesets as well, but those are still rare, and occasionally result in very large sub-documents.
-rw-r--r--fuzzycat/matching.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzzycat/matching.py b/fuzzycat/matching.py
index bcda46d..b358899 100644
--- a/fuzzycat/matching.py
+++ b/fuzzycat/matching.py
@@ -207,7 +207,7 @@ def retrieve_entity_list(
if entity_type == ReleaseEntity:
for id in ids:
try:
- re = api.get_release(id, hide="refs,abstracts", expand="container")
+ re = api.get_release(id, hide="refs,abstracts", expand="container,contribs,files")
result.append(re)
except ApiException as exc:
if exc.status == 404: