Skip to content

Commit

Permalink
reenable option to play tunetwins again
Browse files Browse the repository at this point in the history
  • Loading branch information
BeritJanssen committed Mar 5, 2024
1 parent f583ff6 commit c027dc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion backend/experiment/rules/hooked.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions backend/experiment/rules/matching_pairs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit c027dc7

Please sign in to comment.