Spaces:
Sleeping
Sleeping
Lucas ARRIESSE
commited on
Commit
·
f6da275
1
Parent(s):
e4907af
Fix draft export
Browse files- static/js/ui.js +1 -1
static/js/ui.js
CHANGED
|
@@ -758,7 +758,7 @@ export async function handleExportDrafts() {
|
|
| 758 |
|
| 759 |
// Loop through each draft in the history
|
| 760 |
draftHistory.forEach((draft, index) => {
|
| 761 |
-
const fileContent = `## Problem Description\n\n${draft.solution.
|
| 762 |
// Define a unique filename for each draft
|
| 763 |
const fileName = `${draft.type}_${index + 1}.txt`;
|
| 764 |
zip.file(fileName, fileContent);
|
|
|
|
| 758 |
|
| 759 |
// Loop through each draft in the history
|
| 760 |
draftHistory.forEach((draft, index) => {
|
| 761 |
+
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}`;
|
| 762 |
// Define a unique filename for each draft
|
| 763 |
const fileName = `${draft.type}_${index + 1}.txt`;
|
| 764 |
zip.file(fileName, fileContent);
|