Skip to content

Commit 3d99705

Browse files
committed
Minor change to admin portal app import
1 parent 7979026 commit 3d99705

File tree

1 file changed

+2
-3
lines changed
  • python-flask-admin-portal-example

1 file changed

+2
-3
lines changed

python-flask-admin-portal-example/app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import workos.resources.organizations
1010
import workos.resources.portal
1111
import workos.resources.sso
12+
from workos.types import DomainDataInput
1213

1314

1415
# Flask Setup
@@ -43,9 +44,7 @@ def provision_enterprise():
4344
else:
4445
domain_data = list(
4546
map(
46-
lambda domain: workos.organizations.DomainDataInput(
47-
{"domain": domain, "state": "verified"}
48-
),
47+
lambda domain: DomainDataInput({"domain": domain, "state": "verified"}),
4948
organization_domains,
5049
)
5150
)

0 commit comments

Comments
 (0)