Exemple #1
0
    def answered_wrong(self, demographics):
        self.num_wrong += 1
        for category, value in demographics.items():
            self._init_demographic(category, value)
            self.demographics[category][value]["wrong"] += 1

        db.update_question_wrong(self.oid, demographics)
Exemple #2
0
 def timed_out(self, question_oid):
     self._answered_questions.add(question_oid)
     db.user_guess_wrong(self._oid, question_oid)
     db.update_question_wrong(question_oid, self._demographics)