Commit 52c971dc by Vik Paruchuri

persist hints to database, remove check button if too many attempts

parent 37ad2741
......@@ -9,6 +9,7 @@ $(document).on('click', 'section.sa-wrapper input#show', ( ->
$('section.sa-wrapper p#rubric').append("Your answer: #{answer}")
$('section.sa-wrapper p#rubric').append(response.rubric)
else
$('section.sa-wrapper input#show').remove()
$('section.sa-wrapper p#rubric').append(response.message)
));
......
......@@ -27,7 +27,8 @@ from xmodule.contentstore.content import XASSET_SRCREF_PREFIX, StaticContent
log = logging.getLogger("mitx.courseware")
#Set the default number of max attempts. Should be 1 for production
max_attempts = 100
#Set higher for debugging/testing
max_attempts = 1
def only_one(lst, default="", process=lambda x: x):
"""
......@@ -274,6 +275,7 @@ class SelfAssessmentModule(XModule):
state = {'seed': 1,
'student_answers': self.answer,
'hint' : self.hint,
'correct_map': {'self_assess': {'correctness': self.correctness,
'npoints': points,
'msg': "",
......
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