Compare commits

...

4 Commits

Author SHA1 Message Date
slrover f7e39f2edb Updated version 2026-06-03 15:40:34 +03:00
slrover bf3b188149 Merge pull request 'Check save file result' (#1) from check-save-result into master
Reviewed-on: #1
Reviewed-by: Ilya Sapunov <1+slrover@slrover.ru>
2026-06-03 12:36:11 +00:00
nib4k f657ca77a4 Kz company details 2026-06-03 15:29:37 +03:00
nib4k 6982393d03 Check save file result 2026-06-03 15:29:30 +03:00
3 changed files with 8 additions and 2 deletions
+4
View File
@@ -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')
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
+3 -1
View File
@@ -229,7 +229,9 @@ class FocusCompliance(Request):
file_type='docx',
path=path
)
if not result['success']:
return {'success': False, 'result': result['message']}
return {'success': True, 'file': result}
except AttributeError:
return {'success': False, 'result': 'Организация не найдена'}
+1 -1
View File
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name="kontur_focus",
version="2026.4.3",
version="2026.6.3",
author="Ilya Sapunov",
author_email="me@slrover.ru",
description="Библиотека-обертка для взаимодействия с REST API Контур.Фокус и Фокус.Комплаенс",