From 91e4cedb00d1d2a5003f331880290a6e600ee6b5 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 9 Mar 2022 17:18:00 -0800 Subject: quick fix: coverage search --- python/fatcat_web/search.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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", -- cgit v1.2.3