Hi all,
I have a question regarding the minimum time for a page, I have wrote the same question when answering Chris's Email, but I think it would be good to write a separate email.
I saw there are sample codes on Otree-snippets, However the page before that is waiting-page, so I have to wrote the code on the page itself I want to stay for 15s:
def error_message(player: Player, values):
import time
player.page_pass_time = time.time() + 15
if time.time()< player.page_pass_time:
return " stay here"
However , whenever I click "next button" it shows the error message " stay here".
I want to know in case the previous page is waiting room , how can we set the minimum time?
Thank you!
Shaorong