diff --git a/api/chalicelib/core/heatmaps.py b/api/chalicelib/core/heatmaps.py index 03d0a5864..58eabb339 100644 --- a/api/chalicelib/core/heatmaps.py +++ b/api/chalicelib/core/heatmaps.py @@ -176,7 +176,7 @@ def search_short_session(data: schemas.HeatMapSessionsSearch, project_id, user_i project_id=project_id, user_id=user_id) full_args["exclude_sessions"] = tuple(exclude_sessions) if len(exclude_sessions) > 0: - query_part += "\n AND session_id NOT IN (%(exclude_sessions)s)" + query_part += "\n AND session_id NOT IN %(exclude_sessions)s" with pg_client.PostgresClient() as cur: data.order = schemas.SortOrderType.desc data.sort = 'duration' diff --git a/ee/api/chalicelib/core/heatmaps.py b/ee/api/chalicelib/core/heatmaps.py index 18f2fc12e..f57273ec6 100644 --- a/ee/api/chalicelib/core/heatmaps.py +++ b/ee/api/chalicelib/core/heatmaps.py @@ -192,7 +192,7 @@ if not config("EXP_SESSIONS_SEARCH", cast=bool, default=False): project_id=project_id, user_id=user_id) full_args["exclude_sessions"] = tuple(exclude_sessions) if len(exclude_sessions) > 0: - query_part += "\n AND session_id NOT IN (%(exclude_sessions)s)" + query_part += "\n AND session_id NOT IN %(exclude_sessions)s" with pg_client.PostgresClient() as cur: data.order = schemas.SortOrderType.desc data.sort = 'duration'