mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-13 16:04:49 +02:00
Update extra_transition_domain_helper.py
This commit is contained in:
parent
0552a77c64
commit
2659cd816b
1 changed files with 3 additions and 3 deletions
|
@ -870,15 +870,15 @@ class OrganizationDataLoader:
|
|||
"""Maps an id given in get_domain_data to a organization_adhoc
|
||||
record which has its corresponding definition"""
|
||||
# Get a row in the domain_additional file. The id is the domain_name.
|
||||
domain_additional_row = self.retrieve_file_data_by_id(EnumFilenames.DOMAIN_ADDITIONAL, domain_name)
|
||||
domain_additional_row = self.retrieve_row_by_id(EnumFilenames.DOMAIN_ADDITIONAL, domain_name)
|
||||
if domain_additional_row is None:
|
||||
return None
|
||||
|
||||
# Get a row in the organization_adhoc file. The id is the orgid in domain_info.
|
||||
org_row = self.retrieve_file_data_by_id(EnumFilenames.ORGANIZATION_ADHOC, domain_additional_row.orgid)
|
||||
org_row = self.retrieve_row_by_id(EnumFilenames.ORGANIZATION_ADHOC, domain_additional_row.orgid)
|
||||
return org_row
|
||||
|
||||
def retrieve_file_data_by_id(self, file_type: EnumFilenames, desired_id):
|
||||
def retrieve_row_by_id(self, file_type: EnumFilenames, desired_id):
|
||||
"""Returns a field in a dictionary based off the type and id.
|
||||
|
||||
vars:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue