fix(chalice): heatmap support operators (#2706)
(cherry picked from commit ca4c568883)
This commit is contained in:
parent
411dfa0965
commit
079a5fda6d
2 changed files with 3 additions and 3 deletions
|
|
@ -224,7 +224,7 @@ def search_short_session(data: schemas.HeatMapSessionsSearch, project_id, user_i
|
|||
break
|
||||
for f in data.events:
|
||||
if f.type == schemas.EventType.LOCATION:
|
||||
location_condition = f
|
||||
location_condition = f.model_copy()
|
||||
if len(f.value) == 0:
|
||||
f.operator = schemas.SearchEventOperator.IS_ANY
|
||||
elif f.type == schemas.EventType.CLICK:
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ if not config("EXP_SESSIONS_SEARCH", cast=bool, default=False):
|
|||
break
|
||||
for f in data.events:
|
||||
if f.type == schemas.EventType.LOCATION:
|
||||
location_condition = f
|
||||
location_condition = f.model_copy()
|
||||
if len(f.value) == 0:
|
||||
f.operator = schemas.SearchEventOperator.IS_ANY
|
||||
elif f.type == schemas.EventType.CLICK:
|
||||
|
|
@ -437,7 +437,7 @@ else:
|
|||
break
|
||||
for f in data.events:
|
||||
if f.type == schemas.EventType.LOCATION:
|
||||
location_condition = f
|
||||
location_condition = f.model_copy()
|
||||
if len(f.value) == 0:
|
||||
f.operator = schemas.SearchEventOperator.IS_ANY
|
||||
elif f.type == schemas.EventType.CLICK:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue