mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-04 20:30:39 +08:00
refactor: ruff format
This commit is contained in:
parent
18362c38e7
commit
3a7ce5e27b
@ -55,8 +55,11 @@ class MemberInviteEmailApi(Resource):
|
||||
inviter = current_user
|
||||
invitation_results = []
|
||||
console_web_url = dify_config.CONSOLE_WEB_URL
|
||||
if (FeatureService.get_system_features().license.product_id == "DIFY_ENTERPRISE_STANDARD" and
|
||||
len(invitee_emails) > FeatureService.get_features(tenant_id=inviter.current_tenant.id).available_team_members):
|
||||
if (
|
||||
FeatureService.get_system_features().license.product_id == "DIFY_ENTERPRISE_STANDARD"
|
||||
and len(invitee_emails)
|
||||
> FeatureService.get_features(tenant_id=inviter.current_tenant.id).available_team_members
|
||||
):
|
||||
return {
|
||||
"code": "limit-exceeded",
|
||||
"message": "Limit exceeded",
|
||||
|
@ -585,7 +585,10 @@ class TenantService:
|
||||
if not FeatureService.get_system_features().is_allow_create_workspace and not is_setup:
|
||||
raise WorkSpaceNotAllowedCreateError()
|
||||
|
||||
if FeatureService.get_system_features().license.product_id == "DIFY_ENTERPRISE_STANDARD" and FeatureService.get_system_features().available_workspaces <= 0:
|
||||
if (
|
||||
FeatureService.get_system_features().license.product_id == "DIFY_ENTERPRISE_STANDARD"
|
||||
and FeatureService.get_system_features().available_workspaces <= 0
|
||||
):
|
||||
raise WorkSpaceNotAllowedCreateError()
|
||||
|
||||
if name:
|
||||
|
Loading…
x
Reference in New Issue
Block a user