Fixed method search_global_company_profiles_id
This commit is contained in:
@@ -73,6 +73,7 @@ class FocusCompliance(Request):
|
||||
:return: Список идентификаторов профилей
|
||||
:rtype: list
|
||||
"""
|
||||
try:
|
||||
response = self.get(f'{self._focus_base_url}/companies/profiles/search', query=self.inn)
|
||||
profiles = response['legalEntityProfiles']
|
||||
|
||||
@@ -82,6 +83,8 @@ class FocusCompliance(Request):
|
||||
return [profile['id'] for profile in profiles]
|
||||
else:
|
||||
return [profiles[0]['id']]
|
||||
except KeyError:
|
||||
return None
|
||||
|
||||
def legal_entity_profile_report(self, profile_id_list: list, path: str = None) -> dict:
|
||||
"""Получение печатного отчета по профилю ЮЛ
|
||||
|
||||
Reference in New Issue
Block a user