From b4ae012e655669b0ed549f6e57a1f308fa4fbc20 Mon Sep 17 00:00:00 2001 From: zty Date: Wed, 29 May 2024 11:07:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/apps/exam/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/apps/exam/views.py b/server/apps/exam/views.py index 34cd5fa..5e0a702 100644 --- a/server/apps/exam/views.py +++ b/server/apps/exam/views.py @@ -275,7 +275,7 @@ class PaperViewSet(ModelViewSet): def upload_paper(self, request): doc_path = request.data.get('doc_path') excel_path = settings.BASE_DIR + "/media/default/question.xlsx" - doc_path = os.path.join(settings.BASE_DIR, doc_path) + doc_path = settings.BASE_DIR + doc_path # excel_path = "C:\code\data\question.xlsx" timenow = timezone.now().strftime('%Y%m%d%H%M%S') question_excel_name = "question_excel_"+timenow