Skip to content

Commit

Permalink
Add keyword argument to ES API method.
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldorodrigo committed May 22, 2024
1 parent 7dcddf4 commit 515ae3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/handlers/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 515ae3f

Please sign in to comment.