Lucas ARRIESSE commited on
Commit ·
f6da275
1
Parent(s): e4907af
Fix draft export
Browse files757 unmodified lines758759760761761762763764757 unmodified lines
// Loop through each draft in the history draftHistory.forEach((draft, index) => { const fileContent = `## Problem Description\n\n${draft.solution.solution_description}\n\n## Solution\n\n${draft.solution.solution_description}\n\n${separator}\n\n## Assessment \n\n${draft.assessment_full}`; const fileContent = `## Problem Description\n\n${draft.solution.problem_description}\n\n## Solution\n\n${draft.solution.solution_description}\n\n${separator}\n\n## Assessment \n\n${draft.assessment_full}`; // Define a unique filename for each draft const fileName = `${draft.type}_${index + 1}.txt`; zip.file(fileName, fileContent);static/js/ui.js+1-1