feat(api): custom metrics fixed update-null-index
This commit is contained in:
parent
11f767095e
commit
ac5c08adbd
1 changed files with 1 additions and 0 deletions
|
|
@ -126,6 +126,7 @@ def update(metric_id, user_id, project_id, data: schemas.UpdateCustomMetricsSche
|
|||
if s.series_id is None:
|
||||
n_series.append({"i": i, "s": s})
|
||||
prefix = "n_"
|
||||
s.index = i
|
||||
else:
|
||||
u_series.append({"i": i, "s": s})
|
||||
u_series_ids.append(s.series_id)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue