From f5285a4947a91e43d8b12a3ae2dcb8d3ff70e361 Mon Sep 17 00:00:00 2001 From: Wu Clan Date: Sun, 8 Mar 2026 19:14:45 +0800 Subject: [PATCH] FIx lint and merge master --- backend/app/admin/model/role.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/backend/app/admin/model/role.py b/backend/app/admin/model/role.py index f21f820c..d3500962 100644 --- a/backend/app/admin/model/role.py +++ b/backend/app/admin/model/role.py @@ -12,13 +12,9 @@ class Role(Base, TenantMixin): __tablename__ = 'sys_role' if settings.TENANT_ENABLED: - __table_args__ = ( - sa.UniqueConstraint('name', 'tenant_id'), - ) + __table_args__ = (sa.UniqueConstraint('name', 'tenant_id'),) else: - __table_args__ = ( - sa.UniqueConstraint('name'), - ) + __table_args__ = (sa.UniqueConstraint('name'),) id: Mapped[id_key] = mapped_column(init=False) name: Mapped[str] = mapped_column(sa.String(32), comment='角色名称')