Skip to content

Commit

Permalink
add play_method for test sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
BeritJanssen committed Nov 7, 2023
1 parent 99c2bad commit c7572a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/experiment/rules/musical_preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class MusicalPreferences(Base):
preference_offset = 4 #20
knowledge_offset = 6 #42
round_increment = 1
play_method = 'EXTERNAL'

know_score = {
'yes': 2,
Expand Down Expand Up @@ -111,7 +112,7 @@ def next_round(self, session, request_session=None):
return Redirect(settings.HOMEPAGE)
else:
session.decrement_round()
playback = get_test_playback()
playback = get_test_playback(self.playback_method)
html = HTML(body='<h4>{}</h4>'.format(_('Do you hear the music?')))
form = Form(form=[BooleanQuestion(
key='audio_check1',
Expand Down

0 comments on commit c7572a5

Please sign in to comment.