fix(chalice): fixed heatmap empty value (#2710)
This commit is contained in:
parent
a5c236d648
commit
8a99bcf7c8
2 changed files with 3 additions and 3 deletions
|
|
@ -224,9 +224,9 @@ def search_short_session(data: schemas.HeatMapSessionsSearch, project_id, user_i
|
||||||
break
|
break
|
||||||
for f in data.events:
|
for f in data.events:
|
||||||
if f.type == schemas.EventType.LOCATION:
|
if f.type == schemas.EventType.LOCATION:
|
||||||
location_condition = f.model_copy()
|
|
||||||
if len(f.value) == 0:
|
if len(f.value) == 0:
|
||||||
f.operator = schemas.SearchEventOperator.IS_ANY
|
f.operator = schemas.SearchEventOperator.IS_ANY
|
||||||
|
location_condition = f.model_copy()
|
||||||
elif f.type == schemas.EventType.CLICK:
|
elif f.type == schemas.EventType.CLICK:
|
||||||
no_click = False
|
no_click = False
|
||||||
if len(f.value) == 0:
|
if len(f.value) == 0:
|
||||||
|
|
|
||||||
|
|
@ -239,9 +239,9 @@ if not config("EXP_SESSIONS_SEARCH", cast=bool, default=False):
|
||||||
break
|
break
|
||||||
for f in data.events:
|
for f in data.events:
|
||||||
if f.type == schemas.EventType.LOCATION:
|
if f.type == schemas.EventType.LOCATION:
|
||||||
location_condition = f.model_copy()
|
|
||||||
if len(f.value) == 0:
|
if len(f.value) == 0:
|
||||||
f.operator = schemas.SearchEventOperator.IS_ANY
|
f.operator = schemas.SearchEventOperator.IS_ANY
|
||||||
|
location_condition = f.model_copy()
|
||||||
elif f.type == schemas.EventType.CLICK:
|
elif f.type == schemas.EventType.CLICK:
|
||||||
no_click = False
|
no_click = False
|
||||||
if len(f.value) == 0:
|
if len(f.value) == 0:
|
||||||
|
|
@ -437,9 +437,9 @@ else:
|
||||||
break
|
break
|
||||||
for f in data.events:
|
for f in data.events:
|
||||||
if f.type == schemas.EventType.LOCATION:
|
if f.type == schemas.EventType.LOCATION:
|
||||||
location_condition = f.model_copy()
|
|
||||||
if len(f.value) == 0:
|
if len(f.value) == 0:
|
||||||
f.operator = schemas.SearchEventOperator.IS_ANY
|
f.operator = schemas.SearchEventOperator.IS_ANY
|
||||||
|
location_condition = f.model_copy()
|
||||||
elif f.type == schemas.EventType.CLICK:
|
elif f.type == schemas.EventType.CLICK:
|
||||||
no_click = False
|
no_click = False
|
||||||
if len(f.value) == 0:
|
if len(f.value) == 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue