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
12 lines
356 B
Python
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()
|
|
}
|