Small fix

This commit is contained in:
2025-11-07 13:44:19 +03:00
parent d53c05df19
commit 71cd6ddfcd

View File

@@ -211,10 +211,10 @@ class FocusCompliance(Request):
"""
if self.inn:
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)
else:
return {'success': True, 'result': 'Необходимо указать: либо ИНН, либо ФИО (хотя бы фамилию и имя) и паспорт'}
return {'success': False, 'result': 'Необходимо указать: либо ИНН, либо ФИО (хотя бы фамилию и имя) и паспорт'}
result = self._save_file(
filename='Полный_отчет',