Fixed individual report
This commit is contained in:
@@ -216,14 +216,17 @@ class FocusCompliance(Request):
|
||||
else:
|
||||
return {'success': False, 'result': 'Необходимо указать: либо ИНН, либо ФИО (хотя бы фамилию и имя) и паспорт'}
|
||||
|
||||
result = self._save_file(
|
||||
filename='Полный_отчет',
|
||||
content=response.content,
|
||||
file_type='docx',
|
||||
path=path
|
||||
)
|
||||
if response.status_code == 200:
|
||||
result = self._save_file(
|
||||
filename='Полный_отчет',
|
||||
content=response.content,
|
||||
file_type='docx',
|
||||
path=path
|
||||
)
|
||||
|
||||
return {'success': True, 'file': result}
|
||||
return {'success': True, 'file': result}
|
||||
else:
|
||||
return {'success': False, 'result': 'Ошибка получения отчета. Проверьте корректность ИНН, ФИО или паспортных данных.'}
|
||||
|
||||
# Иноагенты
|
||||
def get_foreign_agents_list(self, fa_type: str = None) -> list: # Не работает, если нет подключенной лицензии
|
||||
|
||||
Reference in New Issue
Block a user