Save lcp state when a problem is saved

This commit is contained in:
Calen Pennington
2013-03-11 12:23:24 -04:00
parent 95f8f811c5
commit 881e137fb0
2 changed files with 2 additions and 16 deletions

View File

@@ -734,6 +734,8 @@ class CapaModule(XModule):
self.lcp.student_answers = answers
self.set_state_from_lcp()
self.system.track_function('save_problem_success', event_info)
msg = "Your answers have been saved"
if not self.max_attempts==0:

View File

@@ -1,16 +0,0 @@
#! /bin/bash
set -e
set -x
git remote prune origin
# Reset the submodule, in case it changed
git submodule foreach 'git reset --hard HEAD'
# Set the IO encoding to UTF-8 so that askbot will start
export PYTHONIOENCODING=UTF-8
rake clobber
rake pep8 || echo "pep8 failed, continuing"
rake pylint || echo "pylint failed, continuing"