Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d162a654a1 | ||
|
|
017425523e | ||
|
|
f7e39f2edb | ||
|
|
bf3b188149 |
@@ -42,7 +42,7 @@ class Focus(Request):
|
||||
"""
|
||||
response = self.get('/excerpt')
|
||||
|
||||
if response.status_code != 404:
|
||||
if type(response) is not str and response.status_code != 404:
|
||||
current_datetime = datetime.now().strftime('%d-%m-%Y_%H-%M')
|
||||
filename = f'Выписка_{self.inn}_{current_datetime}.pdf'
|
||||
|
||||
|
||||
@@ -144,6 +144,8 @@ class FocusCompliance(Request):
|
||||
return {'success': True, 'result': [profiles[0]['id']]}
|
||||
except KeyError:
|
||||
return {'success': False, 'result': 'Key Error'}
|
||||
except TypeError:
|
||||
return {'success': False, 'result': 'Type Error'}
|
||||
|
||||
def full_legal_entity_sanctions_profile(self, profile_id_list: list) -> dict:
|
||||
"""Просмотр полной информации определенного санкционного профиля ЮЛ
|
||||
|
||||
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name="kontur_focus",
|
||||
version="2026.4.3",
|
||||
version="2026.8.20",
|
||||
author="Ilya Sapunov",
|
||||
author_email="me@slrover.ru",
|
||||
description="Библиотека-обертка для взаимодействия с REST API Контур.Фокус и Фокус.Комплаенс",
|
||||
|
||||
Reference in New Issue
Block a user