From 3f4124e98ed7aa3524b2d32c0670e8cd92ec9e41 Mon Sep 17 00:00:00 2001 From: "houhan@gmail.com" Date: Mon, 29 Jan 2024 23:28:52 +0000 Subject: [PATCH] to avoid weird bugs, settle down on a version where we con't update the URL upon selecting the curriculum --- code/Home.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/code/Home.py b/code/Home.py index 8405ada..8a86bfd 100644 --- a/code/Home.py +++ b/code/Home.py @@ -79,9 +79,9 @@ 'auto_training_history_x_axis': 'date', 'auto_training_history_sort_by': 'subject_id', 'auto_training_history_sort_order': 'descending', - 'auto_training_curriculum_name': 'Coupled Baiting', - 'auto_training_curriculum_version': '0.1', - 'auto_training_curriculum_schema_version': '0.3', + 'auto_training_curriculum_name': '', + 'auto_training_curriculum_version': '', + 'auto_training_curriculum_schema_version': '', } @@ -692,10 +692,6 @@ def app(): # Get selected curriculum selected_row = aggrid_curriculum_outputs['selected_rows'][0] - # Update session_state - st.session_state['auto_training_curriculum_name'] = selected_row['curriculum_name'] - st.session_state['auto_training_curriculum_schema_version'] = selected_row['curriculum_schema_version'] - st.session_state['auto_training_curriculum_version'] = selected_row['curriculum_version'] if selected_row: selected_curriculum = st.session_state.curriculum_manager.get_curriculum(