feat(chalice): fixed typo
This commit is contained in:
parent
ef2f6a90b9
commit
0ca7994672
2 changed files with 2 additions and 2 deletions
|
|
@ -161,7 +161,7 @@ def __check_SSL(*_):
|
|||
|
||||
def __get_sessions_stats(*_):
|
||||
with pg_client.PostgresClient() as cur:
|
||||
constraints = ["projects.deteled_at IS NULL"]
|
||||
constraints = ["projects.deleted_at IS NULL"]
|
||||
query = cur.mogrify(f"""SELECT COALESCE(SUM(sessions_count),0) AS s_c,
|
||||
COALESCE(SUM(events_count),0) AS e_c
|
||||
FROM public.projects_stats
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ def __check_SSL(*_):
|
|||
|
||||
def __get_sessions_stats(tenant_id, *_):
|
||||
with pg_client.PostgresClient() as cur:
|
||||
constraints = ["projects.deteled_at IS NULL"]
|
||||
constraints = ["projects.deleted_at IS NULL"]
|
||||
if tenant_id:
|
||||
constraints.append("tenant_id=%(tenant_id)s")
|
||||
query = cur.mogrify(f"""SELECT COALESCE(SUM(sessions_count),0) AS s_c,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue