Skip to content
Snippets Groups Projects
Commit a9f2a99e authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Fix pages search

parent 3aaf30f6
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ def search_nested_post(model, data):
elts_date_range = {
uuid.UUID(result['_id']): result['_source']['date_range'][0]
if result['_source']['date_range'] else {}
if result['_source'].get('date_range') else {}
for result in results
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment