From 2dd01dfc505741f15e5c326d069ca59d90915fb3 Mon Sep 17 00:00:00 2001 From: zty Date: Wed, 29 May 2024 10:53:49 +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 | 1 + 1 file changed, 1 insertion(+) diff --git a/server/apps/exam/views.py b/server/apps/exam/views.py index e0ceb1d..34cd5fa 100644 --- a/server/apps/exam/views.py +++ b/server/apps/exam/views.py @@ -275,6 +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) # excel_path = "C:\code\data\question.xlsx" timenow = timezone.now().strftime('%Y%m%d%H%M%S') question_excel_name = "question_excel_"+timenow