diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-03-09 17:18:00 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-03-09 17:18:00 -0800 |
commit | 91e4cedb00d1d2a5003f331880290a6e600ee6b5 (patch) | |
tree | b002b3ae4a91e1193b099f1e08fdde00ec7f7250 /python | |
parent | 4c7e0f2de21185fca25244204567a3351a3ebc0a (diff) | |
download | fatcat-91e4cedb00d1d2a5003f331880290a6e600ee6b5.tar.gz fatcat-91e4cedb00d1d2a5003f331880290a6e600ee6b5.zip |
quick fix: coverage search
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat_web/search.py | 3 |
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", |