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()