Skip to content

Commit

Permalink
Fix serialization error on head index (#497)
Browse files Browse the repository at this point in the history
Co-authored-by: Moshe Zada <moshe.zada@armis.com>
  • Loading branch information
moshe and moshe authored May 30, 2020
1 parent ed1c37e commit cdfc452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comrade/blueprints/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def get_mapping(request: Request, index: str) -> HTTPResponse:
async def head_index(request: Request, index: str) -> HTTPResponse:
client = get_client(request)
content = await client.search(index=index)
return json(x['_source'] for x in content['hits']['hits'])
return json([x['_source'] for x in content['hits']['hits']])


@index_bp.route('/<index>/flush')
Expand Down

0 comments on commit cdfc452

Please sign in to comment.