Skip to content

Commit

Permalink
remove conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpowell1 committed Sep 28, 2023
1 parent 3d83d82 commit 3b7fd1f
Showing 1 changed file with 18 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,38 +131,26 @@ def set_up_reference_data_mapping(
"categories",
)

if address_categories_map:
self.address_categories_map = RefDataMapping(
*categories_shared_args, address_categories_map, "value", "CategoriesMapping"
)
else:
self.address_categories_map = None
self.address_categories_map = RefDataMapping(
*categories_shared_args, address_categories_map, "value", "CategoriesMapping"
)

if email_categories_map:
self.email_categories_map = RefDataMapping(
*categories_shared_args, email_categories_map, "value", "CategoriesMapping"
)
else:
self.email_categories_map = None
self.email_categories_map = RefDataMapping(
*categories_shared_args, email_categories_map, "value", "CategoriesMapping"
)

if phone_categories_map:
self.phone_categories_map = RefDataMapping(
*categories_shared_args, phone_categories_map, "value", "CategoriesMapping"
)
else:
self.phone_categories_map = None

if organization_types_map:
self.organization_types_map = RefDataMapping(
self.folio_client,
"/organizations-storage/organization-types",
"organizationTypes",
organization_types_map,
"name",
"OrganizationTypeMapping",
)
else:
self.organization_types_map = None
self.phone_categories_map = RefDataMapping(
*categories_shared_args, phone_categories_map, "value", "CategoriesMapping"
)

self.organization_types_map = RefDataMapping(
self.folio_client,
"/organizations-storage/organization-types",
"organizationTypes",
organization_types_map,
"name",
"OrganizationTypeMapping",
)

@staticmethod
def get_latest_acq_schemas_from_github(owner, repo, module, object):
Expand Down

0 comments on commit 3b7fd1f

Please sign in to comment.