コード例 #1
0
ファイル: pages.py プロジェクト: RgRp92/Covid19Experiment
 def vars_for_template(self):
     table_details = task_sequence_table_info(self, Constants.app_name)
     return {
         "app_sequence": table_details['sequence'],
         "apps_completed": table_details['num_tasks_completed'],
         "expiration_time": get_expiration_time(self),
     }
コード例 #2
0
    def vars_for_template(self):
        # Set the belief data for the participant
        set_beliefs_data(self)

        table_details = task_sequence_table_info(self, Constants.app_name)
        return {
            "app_sequence": table_details['sequence'],
            "apps_completed": table_details['num_tasks_completed'],
            "expiration_time": get_expiration_time(self),
        }
コード例 #3
0
    def vars_for_template(self):
        # Set the locale on welcome
        self.player.locale = self.participant.vars["locale"]

        set_participant_variables(self)
        table_details = task_sequence_table_info(self, Constants.app_name)

        vars = {
            "formatted_end_time": format_datetime(self),
            "app_sequence": table_details['sequence'],
            "apps_completed": table_details['num_tasks_completed'],
            "expiration_time": get_expiration_time(self),
        }
        return vars