From 0eae03f29d8c7442774937e8726fb65046341402 Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Thu, 12 Dec 2024 18:11:28 +0100 Subject: [PATCH] Dev (#2869) * fix(chalice): fixed user's journey --- api/chalicelib/core/metrics/product_analytics_ch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/chalicelib/core/metrics/product_analytics_ch.py b/api/chalicelib/core/metrics/product_analytics_ch.py index 15df2dda2..a21c175b7 100644 --- a/api/chalicelib/core/metrics/product_analytics_ch.py +++ b/api/chalicelib/core/metrics/product_analytics_ch.py @@ -384,7 +384,7 @@ WITH {initial_sessions_cte} SELECT * FROM pre_ranked_events;""" logger.debug("---------Q1-----------") - ch.execute(query=ch_query1, params=params) + ch.execute(query=ch_query1, parameters=params) if time() - _now > 2: logger.warning(f">>>>>>>>>PathAnalysis long query EE ({int(time() - _now)}s)<<<<<<<<<") logger.warning(ch.format(ch_query1, params)) @@ -411,7 +411,7 @@ WITH pre_ranked_events AS (SELECT * SELECT * FROM ranked_events;""" logger.debug("---------Q2-----------") - ch.execute(query=ch_query2, params=params) + ch.execute(query=ch_query2, parameters=params) if time() - _now > 2: logger.warning(f">>>>>>>>>PathAnalysis long query EE ({int(time() - _now)}s)<<<<<<<<<") logger.warning(ch.format(ch_query2, params)) @@ -426,7 +426,7 @@ SELECT * FROM ({" UNION ALL ".join(projection_query)}) AS chart_steps ORDER BY event_number_in_session;""" logger.debug("---------Q3-----------") - rows = ch.execute(query=ch_query3, params=params) + rows = ch.execute(query=ch_query3, parameters=params) if time() - _now > 2: logger.warning(f">>>>>>>>>PathAnalysis long query EE ({int(time() - _now)}s)<<<<<<<<<") logger.warning(ch.format(ch_query3, params))