oTree icon indicating copy to clipboard operation
oTree copied to clipboard

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

Open changxizhu opened this issue 5 years ago • 1 comments

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?

changxizhu avatar Jan 06 '21 09:01 changxizhu

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

lucasreddinger avatar Dec 12 '23 20:12 lucasreddinger