diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-04-09 19:18:53 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-04-09 19:18:53 -0700 |
commit | c104900837e9d8730d9ca892ebbff0b78e0f31ff (patch) | |
tree | 2bc410873f2ded5f48fb8a59899b60d9c8955aab | |
parent | 0320f2ef339a3e74cddcb34516546493974a19c9 (diff) | |
download | fatcat-c104900837e9d8730d9ca892ebbff0b78e0f31ff.tar.gz fatcat-c104900837e9d8730d9ca892ebbff0b78e0f31ff.zip |
fatcat_ingest: fix recent lint failure
-rwxr-xr-x | python/fatcat_ingest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_ingest.py b/python/fatcat_ingest.py index f1139a28..993b9cfa 100755 --- a/python/fatcat_ingest.py +++ b/python/fatcat_ingest.py @@ -28,7 +28,6 @@ def _init_search(args): client = elasticsearch.Elasticsearch(args.elasticsearch_endpoint) search = Search(using=client, index=args.elasticsearch_index) - search = search.params(track_total_hits=True) return search @@ -69,6 +68,7 @@ def _run_search_dump(args, search): ]) counts = Counter({'ingest_request': 0, 'elasticsearch_release': 0, 'estimate': 0}) + search = search.params(track_total_hits=True) counts['estimate'] = search.count() print("Expecting {} release objects in search queries".format(counts['estimate']), file=sys.stderr) |