Skip to content

Commit

Permalink
Fix odd interaction
Browse files Browse the repository at this point in the history
Fix bug with odd interaction request
  • Loading branch information
Igor Degtiarov authored Feb 20, 2017
1 parent c4317dc commit 0f45513
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion edx_adapt/select/skill_separate_random_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def choose_next_problem(self, course_id, user_id):
post = self.data_interface.get_all_remaining_posttest_problems(course_id, user_id)
if len(post) > 0:
for id in range(14):
prob = 'Post_assessment_'+str(id)
prob = 'Post_assessment_' + str(id)
for post_prob in post:
if post_prob['problem_name'] == prob:
return post_prob
Expand Down
5 changes: 0 additions & 5 deletions static/js/generic_checkbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,6 @@

//check to see if the user has the right answer
ckeckAnswers();

//send last answer, just in case
if(state['attempts'] > 0) {
edx_adapt.send_interaction(state['correct_answer'], state['attempts'], vars['user_id'], edx_adapt.get_problem_name());
}
}

function display_problem_callback(e)
Expand Down
4 changes: 0 additions & 4 deletions static/js/generic_multiple_choice.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,6 @@

//check to see if the user has the right answer
ckeckAnswers();

//send last answer, just in case
if(state['attempts'] > 0)
edx_adapt.send_interaction(state['correct_answer'], state['attempts'], vars['user_id'], edx_adapt.get_problem_name());
}

function display_problem_callback(e)
Expand Down
4 changes: 0 additions & 4 deletions static/js/generic_numeric_entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,6 @@

//check to see if the user has the right answer
check_answers();

//resend last answer on page reload
if(state['attempts'] > 0)
edx_adapt.send_interaction(state['correct_answer'], state['attempts'], vars['user_id'], edx_adapt.get_problem_name());
}

function display_problem_callback(e)
Expand Down
4 changes: 0 additions & 4 deletions static/js/histogram_entry_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,6 @@

//check to see if the user has the right answer
check_answers();

//resend last answer on page reload
if(state['attempts'] > 0)
edx_adapt.send_interaction(state['correct_answer'], state['attempts'], vars['user_id'], edx_adapt.get_problem_name());
}

function display_problem_callback(e)
Expand Down

0 comments on commit 0f45513

Please sign in to comment.