From 2a83dc2a54dd8b73bfd731f3864f9869d1d7550d Mon Sep 17 00:00:00 2001 From: Darshan S <104779711+azuregray@users.noreply.github.com> Date: Tue, 11 Feb 2025 17:11:25 +0530 Subject: [PATCH] Correcting Fatal Error in DOCX Downloading Functionality. [FIX] AutoQPGen :: /models/DocxDownloader.py :: Corrected the path to 10-10 Question Paper Template which caused all DOCX Download attempts to fail. --- models/DocxDownloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/DocxDownloader.py b/models/DocxDownloader.py index ff32a4d..03b87b2 100644 --- a/models/DocxDownloader.py +++ b/models/DocxDownloader.py @@ -9,7 +9,7 @@ def docxSaver(paperData): courseCode = paperDataDictionary['courseCode'] uniqueNameFactor = paperDataDictionary['paperId'] - templatePath = './static/DocxTemplates/QuestionPaperTemplate_10_5.docx' + templatePath = './static/DocxTemplates/QuestionPaperTemplate_10_10.docx' questionPaperPreName = courseCode + "__" + uniqueNameFactor + ".docx" questionPaperPreOutputPath = './static/GeneratedDocx/' + questionPaperPreName