From c027dc7c68012f771bb5a86efbdd684be3562f70 Mon Sep 17 00:00:00 2001 From: BeritJanssen Date: Tue, 5 Mar 2024 10:05:34 +0100 Subject: [PATCH] reenable option to play tunetwins again --- backend/experiment/rules/hooked.py | 1 - backend/experiment/rules/matching_pairs.py | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/backend/experiment/rules/hooked.py b/backend/experiment/rules/hooked.py index 0e6274ff4..f47426ba0 100644 --- a/backend/experiment/rules/hooked.py +++ b/backend/experiment/rules/hooked.py @@ -3,7 +3,6 @@ from django.conf import settings from django.utils.translation import gettext_lazy as _ -from django.template.loader import render_to_string from .base import Base from experiment.actions import Consent, Explainer, Final, Playlist, Score, Step, Trial diff --git a/backend/experiment/rules/matching_pairs.py b/backend/experiment/rules/matching_pairs.py index fd908157d..afe4690a5 100644 --- a/backend/experiment/rules/matching_pairs.py +++ b/backend/experiment/rules/matching_pairs.py @@ -2,7 +2,7 @@ import json from django.utils.translation import gettext_lazy as _ -from django.template.loader import render_to_string +from django.conf import settings from .base import Base from experiment.actions import Consent, Explainer, Final, Playlist, Step, Trial @@ -80,14 +80,14 @@ def next_round(self, session): title='Score', final_text='Can you score higher than your friends and family? Share and let them try!', button={ - 'text': 'Play again', + 'text': 'Play again', 'link': '{}/{}'.format( + settings.CORS_ORIGIN_WHITELIST[0], session.experiment.slug) }, rank=self.rank(session, exclude_unfinished=False), social=social_info, feedback_info=self.feedback_info() ) - cont = self.get_matching_pairs_trial(session) - return [score, cont] + return [score] def get_matching_pairs_trial(self, session): json_data = session.load_json_data()