Skip to content

Commit de0d0d7

Browse files
committed
refactoring - uproszczenie mapowania pól
1 parent 6d552d9 commit de0d0d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/scripts/renderers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ def render_organization_yaml(data: GithubIssueFormDataParser):
1313
template = env.get_template("organization.yaml.j2")
1414

1515
org_data = {
16-
field: data.get(str(OrgFormSchemaIds[field]))
17-
for field in OrgFormSchemaIds.__members__.keys()
16+
field.name: data.get(field.value)
17+
for field in OrgFormSchemaIds
1818
}
1919

2020
return template.render(organization=org_data)

0 commit comments

Comments
 (0)