* 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
This commit is contained in:
Kraiem Taha Yassine 2024-09-03 10:42:12 +02:00 committed by GitHub
parent 80e913d0d1
commit 9e239bb5f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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):

View file

@ -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):