diff --git a/application/single_app/config.py b/application/single_app/config.py index a934fea7..fcf78486 100644 --- a/application/single_app/config.py +++ b/application/single_app/config.py @@ -94,7 +94,7 @@ EXECUTOR_TYPE = 'thread' EXECUTOR_MAX_WORKERS = 30 SESSION_TYPE = 'filesystem' -VERSION = "0.239.007" +VERSION = "0.239.008" SECRET_KEY = os.getenv('SECRET_KEY', 'dev-secret-key-change-in-production') diff --git a/application/single_app/route_backend_conversation_export.py b/application/single_app/route_backend_conversation_export.py index 85bdea8c..ca4dcc0c 100644 --- a/application/single_app/route_backend_conversation_export.py +++ b/application/single_app/route_backend_conversation_export.py @@ -11,6 +11,7 @@ from flask import Response, jsonify, request, make_response from functions_debug import debug_print from swagger_wrapper import swagger_route, get_auth_security +from docx import Document as DocxDocument def register_route_backend_conversation_export(app): @@ -303,8 +304,6 @@ def api_export_message_word(): message_id (str): ID of the message to export. conversation_id (str): ID of the conversation the message belongs to. """ - from docx import Document as DocxDocument - user_id = get_current_user_id() if not user_id: return jsonify({'error': 'User not authenticated'}), 401