Commit 383d323e by Calen Pennington

Remove errant print line left over from debugging

parent 1cd1272e
...@@ -267,9 +267,9 @@ def get_module(user, request, location, student_module_cache, position=None): ...@@ -267,9 +267,9 @@ def get_module(user, request, location, student_module_cache, position=None):
def add_histogram(module): def add_histogram(module):
original_get_html = module.get_html original_get_html = module.get_html
def get_html(): def get_html():
module_id = module.id module_id = module.id
print "Rendering Histogram for ", module_id
histogram = grade_histogram(module_id) histogram = grade_histogram(module_id)
print histogram print histogram
render_histogram = len(histogram) > 0 render_histogram = len(histogram) > 0
...@@ -279,6 +279,7 @@ def add_histogram(module): ...@@ -279,6 +279,7 @@ def add_histogram(module):
'render_histogram': render_histogram, 'render_histogram': render_histogram,
'module_content': original_get_html()} 'module_content': original_get_html()}
return render_to_string("staff_problem_info.html", staff_context) return render_to_string("staff_problem_info.html", staff_context)
module.get_html = get_html module.get_html = get_html
return module return module
......
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