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
This commit is contained in:
parent
80e913d0d1
commit
9e239bb5f1
2 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue