Merge remote-tracking branch 'origin/api-v1.8.2' into dev
This commit is contained in:
commit
b62ce29166
2 changed files with 3 additions and 3 deletions
|
|
@ -43,8 +43,8 @@ def compute():
|
|||
def new_client():
|
||||
with pg_client.PostgresClient() as cur:
|
||||
cur.execute(
|
||||
f"""SELECT *,
|
||||
(SELECT email FROM public.users WHERE role='owner' LIMIT 1) AS email
|
||||
f"""SELECT *, openreplay_version() AS version_number,
|
||||
(SELECT email FROM public.users WHERE role='owner' LIMIT 1) AS email
|
||||
FROM public.tenants
|
||||
LIMIT 1;""")
|
||||
data = cur.fetchone()
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ def compute():
|
|||
def new_client(tenant_id):
|
||||
with pg_client.PostgresClient() as cur:
|
||||
cur.execute(
|
||||
cur.mogrify(f"""SELECT *,
|
||||
cur.mogrify(f"""SELECT *, openreplay_version() AS version_number,
|
||||
(SELECT email FROM public.users WHERE tenant_id=%(tenant_id)s AND role='owner' LIMIT 1) AS email
|
||||
FROM public.tenants
|
||||
WHERE tenant_id=%(tenant_id)s
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue