openreplay/api/chalicelib/core/license.py
Taha Yassine Kraiem 667fe3dd79 feat(db): removed user's appearance
feat(db): removed generated_password
feat(api): merged account&client
feat(api): cleaned account response
feat(api): removed user's appearance
feat(api): removed generated_password
feat(api): limits endpoint
feat(api): notifications/count endpoint
2022-06-17 10:42:29 +02:00

12 lines
356 B
Python

from chalicelib.utils import pg_client
def get_status(tenant_id=None):
with pg_client.PostgresClient() as cur:
# cur.execute("SELECT * FROM public.tenants;")
cur.execute("SELECT edition FROM public.tenants;")
r = cur.fetchone()
return {
"hasActivePlan": True,
"edition": r.get("edition", "").upper()
}