From 80e913d0d17950fa90eab3e0783dbe9fd1b78bcc Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Tue, 3 Sep 2024 10:26:03 +0200 Subject: [PATCH] Dev (#2528) * 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/tenants.py | 2 +- ee/api/chalicelib/core/tenants.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/chalicelib/core/tenants.py b/api/chalicelib/core/tenants.py index 35cd350bc..81ec179a0 100644 --- a/api/chalicelib/core/tenants.py +++ b/api/chalicelib/core/tenants.py @@ -12,7 +12,7 @@ def get_by_tenant_id(tenant_id): '{license.EDITION}' AS edition, openreplay_version() AS version_number, tenants.opt_out, - scope + scope_state FROM public.tenants LIMIT 1;""", {"tenantId": tenant_id}) diff --git a/ee/api/chalicelib/core/tenants.py b/ee/api/chalicelib/core/tenants.py index 1340519e0..ca2d59dde 100644 --- a/ee/api/chalicelib/core/tenants.py +++ b/ee/api/chalicelib/core/tenants.py @@ -32,7 +32,7 @@ def get_by_tenant_id(tenant_id): openreplay_version() AS version_number, tenants.opt_out, tenants.tenant_key, - scope + scope_state FROM public.tenants WHERE tenants.tenant_id = %(tenantId)s AND tenants.deleted_at ISNULL