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:
file.write(content)
return {'success': True, 'path': file_path}
return {'success': True, 'filename': f_name, 'path': file_path}
except Exception as e:
return {'success': False, 'filename': f_name, 'message': e}
return {'success': False, 'message': e}
# Компании
def company_is_foreign_agent(self) -> dict: