summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/search.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-09-04 13:24:44 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-09-04 13:24:47 -0700
commitf75190ab7979c411bc8d90fab13c931933f4595c (patch)
tree34aa7822761c5fb0ee3cb2735a9f73447c99933b /python/fatcat_web/search.py
parent22fc51c7ce5a04e29870c921e291fddd3de38503 (diff)
downloadfatcat-f75190ab7979c411bc8d90fab13c931933f4595c.tar.gz
fatcat-f75190ab7979c411bc8d90fab13c931933f4595c.zip
finish container coverage page
Also re-worked container view sidebar a bit more.
Diffstat (limited to 'python/fatcat_web/search.py')
-rw-r--r--python/fatcat_web/search.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/python/fatcat_web/search.py b/python/fatcat_web/search.py
index 523269ce..2ee76517 100644
--- a/python/fatcat_web/search.py
+++ b/python/fatcat_web/search.py
@@ -213,6 +213,11 @@ def get_elastic_container_stats(ident, issnl=None):
preserved
"""
+ # XXX:
+ ident = "iznnn644szdwva7khyxqzc73bi"
+ ident = "lx7svdzmc5dl3ay4zncjjrql7i"
+ ident = "sn27gkxlkbhuzeexoqyapc756a"
+
query = {
"size": 0,
"query": {
@@ -296,6 +301,11 @@ def get_elastic_container_histogram(ident):
(year, in_ia, count)
"""
+ # XXX:
+ ident = "iznnn644szdwva7khyxqzc73bi"
+ ident = "lx7svdzmc5dl3ay4zncjjrql7i"
+ ident = "sn27gkxlkbhuzeexoqyapc756a"
+
query = {
"aggs": {
"year_in_ia": {
@@ -346,7 +356,7 @@ def get_elastic_container_histogram(ident):
resp.raise_for_status()
# TODO: abort()
resp = resp.json()
- print(resp)
+ #print(resp)
vals = [(h['key']['year'], h['key']['in_ia'], h['doc_count'])
for h in resp['aggregations']['year_in_ia']['buckets']]
vals = sorted(vals)