- Problem editing user model (Boolean values not set)

This commit is contained in:
Josako
2025-11-17 10:43:21 +01:00
parent 95c8282eb8
commit 78043ab3ef
4 changed files with 14 additions and 18 deletions

View File

@@ -35,7 +35,8 @@ def is_valid_tenant(tenant_id):
if tenant_id == 1: # The 'root' tenant, is always valid
return True
tenant = Tenant.query.get(tenant_id)
Database(tenant).switch_schema()
# Use the tenant_id (schema name), not the Tenant object, to switch schema
Database(tenant_id).switch_schema()
if tenant is None:
raise EveAITenantNotFound()
elif tenant.type == 'Inactive':