feat(api): custom_metrics fixed group elements
This commit is contained in:
parent
e47f5d1f4d
commit
0f7f21380e
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ def __try_live(project_id, data: schemas.CreateCustomMetricsSchema):
|
|||
results[i]["values"] = results[i]["values"][:PIE_CHART_GROUP] \
|
||||
+ [{
|
||||
"name": "Others", "group": True,
|
||||
"sessionCount": sum(r["sessionCount"] for r in results[i][PIE_CHART_GROUP:])
|
||||
"sessionCount": sum(r["sessionCount"] for r in results[i]["values"][PIE_CHART_GROUP:])
|
||||
}]
|
||||
|
||||
return results
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue