Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

session.vars is not able to be changed when use wait_for_all_groups #92

Open
chauncyzhu opened this issue Jan 6, 2021 · 1 comment
Open

Comments

@chauncyzhu
Copy link

chauncyzhu commented Jan 6, 2021

I set a session.var in create_session methods, and I have two waitpages.

class ResultsWaitPage(WaitPage):
    after_all_players_arrive = 'set_payoffs'
class CleanPage(WaitPage):
    wait_for_all_groups = True
    after_all_players_arrive = 'clean_data'

In the first wait page, I changed the value in session.var, however, in the next wait page, the var doesn't change as exepected.

Besides, the first waite page is put in Group class, and the second one is put in Subsession class.

Why?

@chauncyzhu chauncyzhu changed the title session.vars is able to be changed when use wait_for_all_groups session.vars is not able to be changed when use wait_for_all_groups Jan 6, 2021
@lucasreddinger
Copy link

why wouldn't you show us all the code? what does clean_data look like?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants