From 29eb6f4a44d259e2ab79269801a4a4519ab6f8f2 Mon Sep 17 00:00:00 2001 From: albertas-jn <24507839+albertas-jn@users.noreply.github.com> Date: Fri, 8 Dec 2023 17:11:46 +0100 Subject: [PATCH] Fix Eurovision2020 and Kuiper2020 expected_result in next_heard_before_action() --- backend/experiment/rules/eurovision_2020.py | 2 +- backend/experiment/rules/kuiper_2020.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/experiment/rules/eurovision_2020.py b/backend/experiment/rules/eurovision_2020.py index 78ad356f8..be39622d7 100644 --- a/backend/experiment/rules/eurovision_2020.py +++ b/backend/experiment/rules/eurovision_2020.py @@ -143,7 +143,7 @@ def next_heard_before_action(self, session): sections = [section], play_config={'ready_time': 3, 'show_animation': True, 'play_method': self.play_method}, preload_message=_('Get ready!')) - expected_result=int(novelty[round_number] == 'old') + expected_result=novelty[round_number] # create Result object and save expected result to database result_pk = prepare_result('heard_before', session, section=section, expected_response=expected_result, scoring_rule='REACTION_TIME') form = Form([BooleanQuestion( diff --git a/backend/experiment/rules/kuiper_2020.py b/backend/experiment/rules/kuiper_2020.py index a0dfbabde..7ae08b676 100644 --- a/backend/experiment/rules/kuiper_2020.py +++ b/backend/experiment/rules/kuiper_2020.py @@ -132,7 +132,7 @@ def next_heard_before_action(self, session): [section], play_config={'ready_time': 3, 'show_animation': True}, preload_message=_('Get ready!')) - expected_result=int(novelty[round_number] == 'old') + expected_result=novelty[round_number] # create Result object and save expected result to database result_pk = prepare_result('heard_before', session, section=section, expected_response=expected_result, scoring_rule='REACTION_TIME') form = Form([BooleanQuestion(