webfront.py

changeset 62
f0a6bf48b05e
parent 61
15c95d3fcfd8
child 63
8949af6a4279
--- a/webfront.py	Wed Jun 05 00:33:50 2019 +0300
+++ b/webfront.py	Sat Jun 08 01:32:25 2019 +0300
@@ -28,9 +28,9 @@
 
         # Amend human-readable messages into the report
         for problem in report['problems']:
-            object = model.body[problem['body-index']]
-            problem['message'] = problem_text(problem, test_suite)
-            problem['ldraw-code'] = object.textual_representation()
+            object = model.body[problem.body_index]
+            problem.message_str = problem_text(problem, test_suite)
+            problem.ldraw_code = object.textual_representation()
     else:
         report = None
         filename = None

mercurial