Spaces:
Running
Running
Upload 2 files
Browse files
scripts/export_quiz_questions.py
CHANGED
|
@@ -153,7 +153,7 @@ def write_atomic(rows: List[Dict[str, object]], output: Path) -> None:
|
|
| 153 |
output.parent.mkdir(parents=True, exist_ok=True)
|
| 154 |
with tempfile.NamedTemporaryFile(
|
| 155 |
"w",
|
| 156 |
-
encoding="utf-8
|
| 157 |
newline="",
|
| 158 |
dir=output.parent,
|
| 159 |
prefix=f".{output.name}.",
|
|
|
|
| 153 |
output.parent.mkdir(parents=True, exist_ok=True)
|
| 154 |
with tempfile.NamedTemporaryFile(
|
| 155 |
"w",
|
| 156 |
+
encoding="utf-8",
|
| 157 |
newline="",
|
| 158 |
dir=output.parent,
|
| 159 |
prefix=f".{output.name}.",
|
scripts/export_true_false_questions.py
CHANGED
|
@@ -145,7 +145,7 @@ def write_atomic(rows: List[Dict[str, object]], output: Path) -> None:
|
|
| 145 |
output.parent.mkdir(parents=True, exist_ok=True)
|
| 146 |
with tempfile.NamedTemporaryFile(
|
| 147 |
"w",
|
| 148 |
-
encoding="utf-8
|
| 149 |
newline="",
|
| 150 |
dir=output.parent,
|
| 151 |
prefix=f".{output.name}.",
|
|
|
|
| 145 |
output.parent.mkdir(parents=True, exist_ok=True)
|
| 146 |
with tempfile.NamedTemporaryFile(
|
| 147 |
"w",
|
| 148 |
+
encoding="utf-8",
|
| 149 |
newline="",
|
| 150 |
dir=output.parent,
|
| 151 |
prefix=f".{output.name}.",
|