Skip to content

Commit

Permalink
Merge branch 'hotfix/listening-conditions' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
BeritJanssen committed Dec 4, 2023
2 parents 7a9ebe4 + 9949c3e commit ccb9598
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions backend/experiment/rules/listening_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from experiment.actions.form import ChoiceQuestion, Form
from experiment.actions.playback import Playback
from experiment.actions.utils import final_action_with_optional_button
from result.utils import prepare_result


class ListeningConditions(Base):
Expand All @@ -17,7 +18,7 @@ def next_round(self, session, request_session=None):
feedback_form = None
if round_number == 1:
key = 'quiet_room'
result_pk = Base.prepare_result(session, expected_response=key)
result_pk = prepare_result(session, expected_response=key)
feedback_form = Form([
ChoiceQuestion(
key=key,
Expand All @@ -34,7 +35,7 @@ def next_round(self, session, request_session=None):
)])
elif round_number == 2:
key = 'internet_connection'
result_pk = Base.prepare_result(session, expected_response=key)
result_pk = prepare_result(session, expected_response=key)
feedback_form = Form([ChoiceQuestion(
key='internet_connection',
question=_(
Expand All @@ -49,7 +50,7 @@ def next_round(self, session, request_session=None):
)])
elif round_number == 3:
key = 'headphones'
result_pk = Base.prepare_result(session, expected_response=key)
result_pk = prepare_result(session, expected_response=key)
feedback_form = Form([
ChoiceQuestion(
key=key,
Expand All @@ -66,7 +67,7 @@ def next_round(self, session, request_session=None):
])
elif round_number == 4:
key = 'notifications_off'
result_pk = Base.prepare_result(session, expected_response=key)
result_pk = prepare_result(session, expected_response=key)
feedback_form = Form([
ChoiceQuestion(
key=key,
Expand Down

0 comments on commit ccb9598

Please sign in to comment.