feat(chalice): fixed typo

This commit is contained in:
Taha Yassine Kraiem 2023-04-27 17:36:16 +02:00
parent ef2f6a90b9
commit 0ca7994672
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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,