Skip to content

Commit

Permalink
Add play_method
Browse files Browse the repository at this point in the history
  • Loading branch information
Evert-R committed Oct 17, 2023
1 parent fcbbcad commit be4bb47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/experiment/rules/eurovision_2020.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Eurovision2020(Hooked):
"""

ID = 'EUROVISION_2020'
play_method = 'BUFFER'

def plan_sections(self, session):
"""Set the plan of tracks for a session.
Expand Down Expand Up @@ -114,6 +115,7 @@ def next_song_sync_action(self, session):
key=key,
section=section,
title=self.get_trial_title(session, next_round_number),
config = {'play_method': self.play_method},
result_id=result_id
)

Expand Down Expand Up @@ -145,7 +147,7 @@ def next_heard_before_action(self, session):

playback = Playback(
[section],
play_config={'ready_time': 3, 'show_animation': True},
play_config={'ready_time': 3, 'show_animation': True, 'play_method': self.play_method},
preload_message=_('Get ready!'))
expected_result=int(novelty[next_round_number - 1] == 'old')
# create Result object and save expected result to database
Expand Down

0 comments on commit be4bb47

Please sign in to comment.