From 545c511820bb0124559e5d36b9ae4185ec278f73 Mon Sep 17 00:00:00 2001 From: crazywoola <427733928@qq.com> Date: Sat, 10 May 2025 18:58:20 +0800 Subject: [PATCH] fix: lint --- api/services/account_service.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api/services/account_service.py b/api/services/account_service.py index 4f186d30a9..da03da69e9 100644 --- a/api/services/account_service.py +++ b/api/services/account_service.py @@ -672,11 +672,7 @@ class TenantService: if not tenant: raise TenantNotFoundError("Tenant not found.") - ta = ( - db.session.query(TenantAccountJoin) - .filter_by(tenant_id=tenant.id, account_id=account.id) - .first() - ) + ta = db.session.query(TenantAccountJoin).filter_by(tenant_id=tenant.id, account_id=account.id).first() if ta: tenant.role = ta.role else: