from otree.api import * import requests # <-- ADD THIS import json # <-- ADD THIS import time doc = '' class C(BaseConstants): NAME_IN_URL = 'postsurvey' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 API_URL = 'https://api-testbed.giftbit.com/papi/v1' API_KEY = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJTSEEyNTYifQ==.Y1Q1eTBIdnBnc0xHakFLMjI1N2QrdTdiM0thK21NbElWS0ltODlPUGdSczhoeFBlekV5bmNYTnpxTEpnblozWDNCWGFERzVQZWlZSTM4UG5KOFNqdlBWaUVJNUhyUXJWRDV1Sk9SNnlOalFZaVF6QUNyb1FKdEZWUnQ2Y3pZOUc=.i8cgk1AGFNy9QmsHxoDJl2mUmf3KN1xGmAtZdEvuHO4=' class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): trust_digital_tools = models.IntegerField( choices=[1, 2, 3, 4, 5], label='How much do you trust digital tools in decision-making after using them in this project? (1 = Not at all, 5 = Completely)', widget=widgets.RadioSelectHorizontal ) overwhelmed = models.IntegerField( choices=[1, 2, 3, 4, 5], label='How overwhelmed, if at all, did you feel by the tools provided? (1 = Not at all, 5 = Completely)', widget=widgets.RadioSelectHorizontal ) effectiveness = models.IntegerField( choices=[1, 2, 3, 4, 5], label='How effective do you think your decisions were? (1 = Not confident, 5 = Very confident)', widget=widgets.RadioSelectHorizontal ) decision_confidence = models.IntegerField( choices=[1, 2, 3, 4, 5], label='How confident are you in your decision-making abilities after using digital tools in this simulation? (1 = Not confident, 5 = Very confident)', widget=widgets.RadioSelectHorizontal ) newsvendor_knowledge = models.IntegerField( choices=[1, 2, 3, 4, 5], label='After completing this simulation, how familiar are you with the newsvendor model? (1 = Not familiar, 5 = Very familiar)', widget=widgets.RadioSelectHorizontal ) usefulness_digital_tools = models.IntegerField( choices=[1, 2, 3, 4, 5], label='How useful did you find digital tools for improving your decision-making during the simulation? (1 = Not useful, 5 = Very useful)', widget=widgets.RadioSelectHorizontal ) informed_decisions = models.IntegerField( choices=[1, 2, 3, 4, 5], label='Did you feel the digital tools helped you make more informed decisions compared to traditional methods (e.g., intuition, manual calculations)? (1 = Not at all, 5 = Definitely)', widget=widgets.RadioSelectHorizontal ) ease_of_use = models.IntegerField( choices=[1, 2, 3, 4, 5], label='How easy was it to use the digital tools during the project? (1 = Very difficult, 5 = Very easy)', widget=widgets.RadioSelectHorizontal ) understanding_complexity = models.IntegerField( choices=[1, 2, 3, 4, 5], label='How much did the digital tools help you understand complex problems? (1 = Not at all, 5 = A lot)', widget=widgets.RadioSelectHorizontal ) confidence_change = models.IntegerField( choices=[1, 2, 3, 4, 5], label='Did you feel more or less confident in your decisions after using digital tools in the simulation? (1 = Less confident, 5 = More confident)', widget=widgets.RadioSelectHorizontal ) future_use = models.IntegerField( choices=[1, 2, 3, 4, 5], label='Would you consider using digital tools in future assignments or decision-making tasks? (1 = Not at all, 5 = Definitely)', widget=widgets.RadioSelectHorizontal ) decision_making_aspects = models.LongStringField( blank=True, label='Which aspects of decision-making did the digital tools help improve the most? (e.g., Organizing information, making predictions, evaluating options)' ) better_decisions = models.IntegerField( choices=[1, 2, 3, 4, 5], label='Do you feel the digital tools helped you make better decisions during the project? (1 = Not at all, 5 = Definitely)', widget=widgets.RadioSelectHorizontal ) email = models.StringField( label="Please enter your email address:", blank=False )