EasySci commited on
Commit
4973bde
·
1 Parent(s): 874e364

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +1 -1
app2.py CHANGED
@@ -58,9 +58,9 @@ buttons_to_add = []
58
  # Callback for adding selected options to the list
59
  def add_to_header(event):
60
  selected_options = filter_list.value
 
61
  if selected_options:
62
  for option in selected_options:
63
- print("This is the button list2:", option,flush=True)
64
  if option not in buttons_to_add: # Check if option is already in header
65
  buttons_to_add.append(option) # Add to header if not already present
66
  filter_list.value = [] # Clear the selected options after adding them to the header
 
58
  # Callback for adding selected options to the list
59
  def add_to_header(event):
60
  selected_options = filter_list.value
61
+ print("This is the button list2:", filter_list, buttons_to_add, flush=True)
62
  if selected_options:
63
  for option in selected_options:
 
64
  if option not in buttons_to_add: # Check if option is already in header
65
  buttons_to_add.append(option) # Add to header if not already present
66
  filter_list.value = [] # Clear the selected options after adding them to the header