Skip to content

Commit

Permalink
Merge pull request #297 from ianco/master
Browse files Browse the repository at this point in the history
Filter company looksups on corp_party records
  • Loading branch information
WadeBarnes authored Jan 4, 2022
2 parents 6325b7e + e4663b1 commit f50e6da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data-pipeline/bcreg/bcregistries.py
Original file line number Diff line number Diff line change
Expand Up @@ -1615,7 +1615,7 @@ def get_bc_reg_corp_info(self, corp_num):
# note we are only issuing a relationship credential (with the two corp_nums)
# ... so just get basic info for the "other" corp in the relationship
if corp_num == corp_party['corp_num']:
if corp_party['bus_company_num'] is not None:
if corp['corp_typ_cd'] == 'FBO' and corp_party['bus_company_num'] is not None:
corp_party['corp_info'] = self.get_basic_corp_info(corp_party['bus_company_num'], False)
else:
corp_party['corp_info'] = self.get_basic_corp_info(corp_party['corp_num'], False)
Expand Down
4 changes: 4 additions & 0 deletions data-pipeline/bcreg/find-test-corps.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,10 @@
'1016676',
'1052899',
'A0010928',
'FM0406835',
'FM0550116',
'FM0167199',
'0102493',
]


Expand Down

0 comments on commit f50e6da

Please sign in to comment.