Skip to content

Commit

Permalink
fix trigger list, attach scores
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Feb 28, 2024
1 parent 9ee5e51 commit 7614056
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion services/ansible_openvpn/docker/dashboard/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async def get_list_samples(request: Request, start_epoch_millis: int,
# reformat elastic search result
return [{"hwa": hit["fields"]["hwa.keyword"],
"timestamp": hit["fields"]["date"],
"_id": hit["_id"]}
"_id": hit["_id"]} | hit["fields"]
for hit in hits]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
]
}
},
"docvalue_fields": [
"fields": [
{
"field": "date",
"format": "epoch_millis"
Expand All @@ -39,7 +39,7 @@
"field": "hwa.keyword"
},
{
"field": "scores_perc.*"
"field": "scores*"
}
]
}

0 comments on commit 7614056

Please sign in to comment.