feat(api): custom metrics handle wrong try-sessions payload
This commit is contained in:
parent
5f22aed09a
commit
31efd3002f
1 changed files with 2 additions and 0 deletions
|
|
@ -107,6 +107,8 @@ def get_sessions(project_id, user_id, metric_id, data: schemas.CustomMetricSessi
|
||||||
|
|
||||||
def try_sessions(project_id, user_id, data: schemas.CustomMetricSessionsPayloadSchema):
|
def try_sessions(project_id, user_id, data: schemas.CustomMetricSessionsPayloadSchema):
|
||||||
results = []
|
results = []
|
||||||
|
if data.series is None:
|
||||||
|
return results
|
||||||
for s in data.series:
|
for s in data.series:
|
||||||
s.filter.startDate = data.startTimestamp
|
s.filter.startDate = data.startTimestamp
|
||||||
s.filter.endDate = data.endTimestamp
|
s.filter.endDate = data.endTimestamp
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue