Skip to content

Commit

Permalink
to avoid weird bugs, settle down on a version where we con't update t…
Browse files Browse the repository at this point in the history
…he URL upon selecting the curriculum
  • Loading branch information
hanhou committed Jan 29, 2024
1 parent 0dadeb9 commit 3f4124e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions code/Home.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': '',
}


Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 3f4124e

Please sign in to comment.