lachlandeer / otree-info-social-norms

0 stars 0 forks source link

Pass data between apps #1

Closed lachlandeer closed 2 months ago

lachlandeer commented 3 months ago

we need the data from GroupPreferenceElicitation to be available in the asset_live_game

I've tried to throw the data to the participants table during the GroupPreferenceElicitation app, but whenever i try and access it either

via the participants table an attribute error is thrown

jasonyji commented 2 months ago

Which line of code does this error occur?

I tried specifying player.participant.vars['Individualism'] from the GroupPreferenceElicitation app within the asset_live_game app, and the value could be retrieved successfully.

lachlandeer commented 2 months ago

OK great

I see that if we try and get it in the function vars_for_template() it works.

Can you use this information (individualist vs collectivist) to the table of signals assigned to players. See #9

lachlandeer commented 2 months ago

closing as this seems to actually work.

re-open if we find issues down the line