From 515ae3fbc395b0a53f61d0b035c66da239c9225b Mon Sep 17 00:00:00 2001 From: Everaldo Date: Wed, 22 May 2024 11:05:05 -0700 Subject: [PATCH] Add keyword argument to ES API method. --- src/web/handlers/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/handlers/metadata.py b/src/web/handlers/metadata.py index 2d86e964..792e51b2 100644 --- a/src/web/handlers/metadata.py +++ b/src/web/handlers/metadata.py @@ -47,7 +47,7 @@ async def _count_anonymous(self): """Fetch a geneset document from Elasticsearch""" try: result = await self.biothings.elasticsearch.async_client.count( - '{"query": {"bool": {"must_not": {"exists": {"field": "author"}}}}}', + body='{"query": {"bool": {"must_not": {"exists": {"field": "author"}}}}}', index=self.biothings.config.ES_USER_INDEX, ) return result["count"]