Check save file result #1
@@ -149,3 +149,7 @@ class Focus(Request):
|
|||||||
foreign_agents_list = next(lst for lst in self.government_lists() if lst['id'] == 'fcfc856d-89f8-408b-afef-56750cb90fed')
|
foreign_agents_list = next(lst for lst in self.government_lists() if lst['id'] == 'fcfc856d-89f8-408b-afef-56750cb90fed')
|
||||||
|
|
||||||
return foreign_agents_list['isInList']
|
return foreign_agents_list['isInList']
|
||||||
|
|
||||||
|
def kz_company_details(self):
|
||||||
|
response = self.get('/kz/companyDetails', bin=self.inn)
|
||||||
|
return response[0] if response else None
|
||||||
|
|||||||
@@ -229,7 +229,9 @@ class FocusCompliance(Request):
|
|||||||
file_type='docx',
|
file_type='docx',
|
||||||
path=path
|
path=path
|
||||||
)
|
)
|
||||||
|
if not result['success']:
|
||||||
|
return {'success': False, 'result': result['message']}
|
||||||
|
|
||||||
return {'success': True, 'file': result}
|
return {'success': True, 'file': result}
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
return {'success': False, 'result': 'Организация не найдена'}
|
return {'success': False, 'result': 'Организация не найдена'}
|
||||||
|
|||||||
Reference in New Issue
Block a user