Commit 50f951d9 by Vik Paruchuri

Bug fixes

parent 6427a7da
...@@ -262,6 +262,7 @@ def _get_next(course_id, grader_id, location): ...@@ -262,6 +262,7 @@ def _get_next(course_id, grader_id, location):
try: try:
response = staff_grading_service().get_next(course_id, location, grader_id) response = staff_grading_service().get_next(course_id, location, grader_id)
response_json = json.loads(response) response_json = json.loads(response)
if response_json.has_key('rubric'):
rubric = response_json['rubric'] rubric = response_json['rubric']
rubric_renderer = CombinedOpenEndedRubric(False) rubric_renderer = CombinedOpenEndedRubric(False)
success, rubric_html = rubric_renderer.render_rubric(rubric) success, rubric_html = rubric_renderer.render_rubric(rubric)
...@@ -271,7 +272,6 @@ def _get_next(course_id, grader_id, location): ...@@ -271,7 +272,6 @@ def _get_next(course_id, grader_id, location):
return json.dumps({'success': False, return json.dumps({'success': False,
'error': error_message}) 'error': error_message})
response_json['rubric'] = rubric_html response_json['rubric'] = rubric_html
log.debug(rubric_html)
return json.dumps(response_json) return json.dumps(response_json)
except GradingServiceError: except GradingServiceError:
log.exception("Error from grading service. server url: {0}" log.exception("Error from grading service. server url: {0}"
......
...@@ -57,12 +57,6 @@ ...@@ -57,12 +57,6 @@
</section> </section>
<section class="rubric-container">
<div class="rubric-wrapper">
</div>
</section>
<div class="action-button"> <div class="action-button">
<input type=button value="Submit" class="action-button" name="show" /> <input type=button value="Submit" class="action-button" name="show" />
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment