From 301d2ce174b81955e6c9f4c50ec5512f8aa0b262 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sun, 31 Oct 2021 23:55:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E7=AD=94=E5=8D=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_server/examtest/exports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_server/examtest/exports.py b/test_server/examtest/exports.py index d6f5f0a..20b0eb7 100644 --- a/test_server/examtest/exports.py +++ b/test_server/examtest/exports.py @@ -34,7 +34,7 @@ def exportw_test(obj, bool): """ 导出个人考试记录word版本 """ - filename = obj.exam.name + '-' + str(obj.exam.id) + '-' + obj.consumer.name + '-' + obj.consumer.id + '.docx' + filename = obj.exam.name + '-' + str(obj.exam.id) + '-' + obj.consumer_detail['name'] + '-' + str(obj.score) + '.docx' path = '/media/export/' + filename fullpath = BASE_DIR + path if bool or (not os.path.exists(fullpath)):