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