From 2afc7e63c68afa1aa48868de5deb8c659bb70e01 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 14:44:09 +0000 Subject: [PATCH 1/2] Initial plan From 104810c4420594566f6ad6b0464099575015484b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 14:45:43 +0000 Subject: [PATCH 2/2] Move docx import to top-level imports Co-authored-by: eldong <11573590+eldong@users.noreply.github.com> --- application/single_app/config.py | 2 +- application/single_app/route_backend_conversation_export.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/application/single_app/config.py b/application/single_app/config.py index a934fea77..fcf78486f 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 85bdea8c3..ca4dcc0cb 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