From db2dd1362afbaed6bf09221b3c09376ea4578079 Mon Sep 17 00:00:00 2001 From: Noam Hurwitz Date: Sat, 15 Nov 2014 04:55:57 -0800 Subject: [PATCH] write to file --- website/package_problems.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/package_problems.py b/website/package_problems.py index b19cbdb..6abd55c 100644 --- a/website/package_problems.py +++ b/website/package_problems.py @@ -17,7 +17,7 @@ def problem_answer_pairings(asgt): solution_file = open("SOLUTIONS" + "-" + a_n + "-" + name, 'a') print(r"\begin{solution}", file=solution_file) - print(asgt.problems[i].solution) + print(asgt.problems[i].solution, file=solution_file) print(r"\end{solution}", file=solution_file) problem_pairings.append(problem_file, solution_file)