Small fix
This commit is contained in:
@@ -211,10 +211,10 @@ class FocusCompliance(Request):
|
|||||||
"""
|
"""
|
||||||
if self.inn:
|
if self.inn:
|
||||||
response = self.get(path=f'{self._focus_base_url}/formFullIndividualReport')
|
response = self.get(path=f'{self._focus_base_url}/formFullIndividualReport')
|
||||||
if not self.inn and passport and fio:
|
elif not self.inn and passport and fio:
|
||||||
response = self.get(path=f'{self._focus_base_url}/formFullIndividualReport', passportNumber=passport, fio=fio)
|
response = self.get(path=f'{self._focus_base_url}/formFullIndividualReport', passportNumber=passport, fio=fio)
|
||||||
else:
|
else:
|
||||||
return {'success': True, 'result': 'Необходимо указать: либо ИНН, либо ФИО (хотя бы фамилию и имя) и паспорт'}
|
return {'success': False, 'result': 'Необходимо указать: либо ИНН, либо ФИО (хотя бы фамилию и имя) и паспорт'}
|
||||||
|
|
||||||
result = self._save_file(
|
result = self._save_file(
|
||||||
filename='Полный_отчет',
|
filename='Полный_отчет',
|
||||||
|
|||||||
Reference in New Issue
Block a user