aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-08-12 22:09:29 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-08-12 22:09:29 -0700
commit29af9d23d65a86b6037d307ad86f6d1681ff110c (patch)
tree0cb51314cc177fda093f5a8e124531d29f5274e7 /python
parentedbbecc7607d1e5a1321e6c6b7be6f733db84e99 (diff)
downloadfatcat-29af9d23d65a86b6037d307ad86f6d1681ff110c.tar.gz
fatcat-29af9d23d65a86b6037d307ad86f6d1681ff110c.zip
include in_kbart container count
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/search.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/fatcat_web/search.py b/python/fatcat_web/search.py
index 709163ec..5b7bdbf6 100644
--- a/python/fatcat_web/search.py
+++ b/python/fatcat_web/search.py
@@ -208,6 +208,7 @@ def get_elastic_container_stats(ident, issnl=None):
issnl (optional)
total
in_web
+ in_kbart
preserved
"""
@@ -236,6 +237,7 @@ def get_elastic_container_stats(ident, issnl=None):
'issnl': issnl,
'total': resp['hits']['total'],
'in_web': buckets['in_web']['doc_count'],
+ 'in_kbart': buckets['in_kbart']['doc_count'],
'is_preserved': buckets['is_preserved']['doc_count'],
}