Skip to content

Commit

Permalink
fix(chalice): fixed sessions search with 1 negative event
Browse files Browse the repository at this point in the history
  • Loading branch information
tahayk committed Dec 8, 2023
1 parent f396d26 commit 0cb63e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ee/api/chalicelib/core/sessions_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1397,9 +1397,9 @@ def search_query_parts_ch(data: schemas.SessionsSearchPayloadSchema, error_statu
WHERE {' AND '.join(__events_where_basic)}
AND ({' OR '.join(value_conditions_not)})) AS sub USING(session_id)"""

if has_values:
events_conditions = [c for c in list(set(sequence_conditions))]
events_conditions_where.append(f"({' OR '.join(events_conditions)})")
# if has_values:
# events_conditions = [c for c in list(set(sequence_conditions))]
# events_conditions_where.append(f"({' OR '.join(events_conditions)})")

events_query_part = f"""SELECT main.session_id,
MIN(main.datetime) AS first_event_ts,
Expand Down

0 comments on commit 0cb63e6

Please sign in to comment.