diff --git a/backend/experiment/actions/wrappers.py b/backend/experiment/actions/wrappers.py index 82ac9ecca..773014f16 100644 --- a/backend/experiment/actions/wrappers.py +++ b/backend/experiment/actions/wrappers.py @@ -50,7 +50,7 @@ def song_sync(session, section, title, response_time=15): recognize = Trial( feedback_form=Form([BooleanQuestion( key='recognize', - result_id=prepare_result('recognize', session, scoring_rule='SONG_SYNC_RECOGNITION'), + result_id=prepare_result('recognize', session, section=section, scoring_rule='SONG_SYNC_RECOGNITION'), submits=True )]), playback=Playback([section], 'AUTOPLAY', play_config={ @@ -86,6 +86,7 @@ def song_sync(session, section, title, response_time=15): submits=True, result_id=prepare_result('correct_place', session, + section=section, scoring_rule='SONG_SYNC_CONTINUATION', expected_response='yes' if continuation_correctness else 'no') )]), diff --git a/backend/session/models.py b/backend/session/models.py index 03381d59e..c8f5b3f60 100644 --- a/backend/session/models.py +++ b/backend/session/models.py @@ -49,7 +49,6 @@ def last_song(self): """Return artist and name of previous song, or return empty string if no scores are set """ - section = self.previous_section() if section: return "{} - {}".format(section.song.artist, section.song.name)