# Return whatever the module wanted to return to the client/caller
returnHttpResponse(ajax_return)
defgrade_histogram(module_id):
''' Print out a histogram of grades on a given problem.
Part of staff member debug info.
'''
fromdjango.dbimportconnection,transaction
fromdjango.dbimportconnection
cursor=connection.cursor()
cursor.execute("select courseware_studentmodule.grade,COUNT(courseware_studentmodule.student_id) from courseware_studentmodule where courseware_studentmodule.module_id=%s group by courseware_studentmodule.grade",[module_id])
<aclass="enroll"rel="leanModal"href="#enroll"><noscript>In order to</noscript> Enroll in 6.002x Circuits <span>&</span> Electronics <noscript>you need to have javascript enabled</noscript></a>
<aclass="enroll"rel="leanModal"href="/info">View 6.002x Circuits <span>&</span> Electronics as a guest</a>
</section>
<p>6.002x (Circuits and Electronics) is an experimental on-line adaptation of MIT’s first undergraduate analog design course: 6.002. This course is running, free of charge, for students worldwide from March 5, 2012 through June 8, 2012.</p>
</section>
...
...
@@ -51,7 +51,7 @@
</section>
<sectionclass="cta">
<aclass="enroll"rel="leanModal"href="#enroll"><noscript>In order to</noscript> Enroll in 6.002x Circuits & Electronics <noscript>you need to have javascript enabled</noscript></a>
<aclass="enroll"rel="leanModal"href="/info">View 6.002x Circuits & Electronics as a guest</a>