aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-03-09 17:18:00 -0800
committerBryan Newbold <bnewbold@robocracy.org>2022-03-09 17:18:00 -0800
commit91e4cedb00d1d2a5003f331880290a6e600ee6b5 (patch)
treeb002b3ae4a91e1193b099f1e08fdde00ec7f7250 /python/fatcat_web
parent4c7e0f2de21185fca25244204567a3351a3ebc0a (diff)
downloadfatcat-91e4cedb00d1d2a5003f331880290a6e600ee6b5.tar.gz
fatcat-91e4cedb00d1d2a5003f331880290a6e600ee6b5.zip
quick fix: coverage search
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/search.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/fatcat_web/search.py b/python/fatcat_web/search.py
index 913d6696..f85f6c89 100644
--- a/python/fatcat_web/search.py
+++ b/python/fatcat_web/search.py
@@ -636,7 +636,8 @@ def get_elastic_preservation_by_year(query: ReleaseQuery) -> List[Dict[str, Any]
"biblio",
],
)
- search = search.filter("term", container_id=query.container_id)
+ if query.container_id:
+ search = search.filter("term", container_id=query.container_id)
if query.exclude_stubs:
search = search.query(
"bool",