From 881e137fb0b80e246e57ed25a1e91cf47133c136 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 11 Mar 2013 12:23:24 -0400 Subject: [PATCH] Save lcp state when a problem is saved --- common/lib/xmodule/xmodule/capa_module.py | 2 ++ jenkins/quality.sh | 16 ---------------- 2 files changed, 2 insertions(+), 16 deletions(-) delete mode 100755 jenkins/quality.sh diff --git a/common/lib/xmodule/xmodule/capa_module.py b/common/lib/xmodule/xmodule/capa_module.py index 9829555134..7786f607c4 100644 --- a/common/lib/xmodule/xmodule/capa_module.py +++ b/common/lib/xmodule/xmodule/capa_module.py @@ -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: diff --git a/jenkins/quality.sh b/jenkins/quality.sh deleted file mode 100755 index 56217af874..0000000000 --- a/jenkins/quality.sh +++ /dev/null @@ -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"