From 9e239bb5f1db181881b9f715b31e760ad242f50d Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Tue, 3 Sep 2024 10:42:12 +0200 Subject: [PATCH] Dev (#2529) * fix(chalice): fixed Math-operators validation refactor(chalice): search for sessions that have events for heatmaps * refactor(chalice): search for sessions that have at least 1 location event for heatmaps * fix(chalice): fixed Math-operators validation refactor(chalice): search for sessions that have events for heatmaps * refactor(chalice): search for sessions that have at least 1 location event for heatmaps * feat(chalice): autocomplete return top 10 with stats * fix(chalice): fixed autocomplete top 10 meta-filters * fix(chalice): fixed scope state --- api/chalicelib/core/scope.py | 2 +- ee/api/chalicelib/core/scope.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/chalicelib/core/scope.py b/api/chalicelib/core/scope.py index f2d013cb3..28424b334 100644 --- a/api/chalicelib/core/scope.py +++ b/api/chalicelib/core/scope.py @@ -12,7 +12,7 @@ def get_scope(tenant_id) -> int: query = cur.mogrify(f"""SELECT scope_state FROM public.tenants;""") cur.execute(query) - return helper.dict_to_camel_case(cur.fetchone())["scope_state"] + return cur.fetchone()["scope_state"] def update_scope(tenant_id, scope: int): diff --git a/ee/api/chalicelib/core/scope.py b/ee/api/chalicelib/core/scope.py index ce4c789e9..f8cb350d0 100644 --- a/ee/api/chalicelib/core/scope.py +++ b/ee/api/chalicelib/core/scope.py @@ -14,7 +14,7 @@ def get_scope(tenant_id) -> int: WHERE tenant_id=%(tenant_id)s;""", {"tenant_id": tenant_id}) cur.execute(query) - return helper.dict_to_camel_case(cur.fetchone())["scope_state"] + return cur.fetchone()["scope_state"] def update_scope(tenant_id, scope: int):