Fixed save_file result

This commit is contained in:
2025-03-28 13:15:59 +03:00
parent 6f5f0db912
commit d71098994d
2 changed files with 3 additions and 3 deletions

View File

@@ -31,9 +31,9 @@ class FocusCompliance(Request):
with open(file_path, mode='wb') as file: with open(file_path, mode='wb') as file:
file.write(content) file.write(content)
return {'success': True, 'path': file_path} return {'success': True, 'filename': f_name, 'path': file_path}
except Exception as e: except Exception as e:
return {'success': False, 'filename': f_name, 'message': e} return {'success': False, 'message': e}
# Компании # Компании
def company_is_foreign_agent(self) -> dict: def company_is_foreign_agent(self) -> dict:

View File

@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup( setup(
name="kontur_focus", name="kontur_focus",
version="0.2.5", version="0.2.6",
author="Ilya Sapunov", author="Ilya Sapunov",
author_email="sapunov@selectel.ru", author_email="sapunov@selectel.ru",
description="Библиотека-обертка для взаимодействия с REST API Контур.Фокус и Фокус.Комплаенс", description="Библиотека-обертка для взаимодействия с REST API Контур.Фокус и Фокус.Комплаенс",