Commit 7756e09a by solashirai Committed by Piotr Mitros

removed print/consolelogs

parent d6acf018
......@@ -323,26 +323,6 @@ class CrowdsourceHinter(XBlock):
print("Ratings changed : " + str(self.hint_database))
return str(temporary_dictionary[str(data_hint)])
# @XBlock.json_handler
# def moderate_hint(self, data, suffix=''):
# """
# Under construction?
# """
# flagged_hints = {}
# flagged_hints = self.Flagged
# if data['rating'] == "dismiss":
# flagged_hints.pop(data['answer_wrong'], None)
# else:
# flagged_hints.pop(data['answer_wrong'], None)
# for answer_keys in self.hint_database:
# if str(answer_keys) == data['answ']:
# for hint_keys in self.hint_database[str(answer_keys)]:
# if str(hint_keys) == data['hint']:
# temporary_dict = str(self.hint_database[str(answer_keys)])
# temporary_dict = (ast.literal_eval(temporary_dict))
# temporary_dict.pop(hint_keys, None)
# self.hint_database[str(answer_keys)] = temporary_dict
@XBlock.json_handler
def give_hint(self, data, suffix=''):
"""
......
......@@ -37,7 +37,6 @@ function CrowdsourceHinter(runtime, element){
});
}else{
$('.csh_correct', element).show();
$('.csh_correct', element).text("Tell us whether the hint you received was helpful to improve our hinting system, or submit a new hint for other students to see!");
$(".csh_hint_reveal", element).hide();
//send empty data for ajax call because not having a data field causes error
$.ajax({
......@@ -178,7 +177,7 @@ function CrowdsourceHinter(runtime, element){
if($(this).parent().find('.csh_student_text_input').val() != null){
var answerdata = unescape($(this).attr('answer'));
var newhint = unescape($('.csh_student_text_input').val());
Logger.log('submit_new.click.event', {"student_answer": answerdata, "new_hint_submission": newhint});
Logger.log('crowd_hinter.submit_new.click.event', {"student_answer": answerdata, "new_hint_submission": newhint});
$('.csh_submitbutton').show();
$.ajax({
type: "POST",
......
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