Hi everyone! I was wondering whether it is possible to let participants decide the timeout seconds for their rounds. For example, a participant can choose from 0 seconds to 180 seconds for a round, instead of me setting a fixed length for a round for the participant.
I tried the following methods But they did not work.
1. class Player(BasePlayer):
timeout = models.IntegerField()
class Task(Page):
timeout_seconds = float(Player.timeout)
Error message says float() function cannot be used with otree atribution (or similar meaning).
2. class Player(BasePlayer):
time = models.IntegerField()
timeout = float(time)
class Task(Page):
@staticmethod
def get_timeout_seconds:
timeout_seconds = Player.timeout
return timeout_seconds
this does not work neither.
Thank you very much for your help in advance!!!