fix: 修改bug

This commit is contained in:
zty 2024-05-29 11:07:04 +08:00
parent 2dd01dfc50
commit b4ae012e65
1 changed files with 1 additions and 1 deletions

View File

@ -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