EasySci commited on
Commit
b4673ba
·
1 Parent(s): 4e6b4b4

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +1 -0
app2.py CHANGED
@@ -119,6 +119,7 @@ def remove_from_header(event):
119
  global paper_list
120
  button = event.obj # Get the clicked button
121
  if button.name in buttons_to_add:
 
122
  paper_list.remove(buttons_to_add.index(button.name))
123
  buttons_to_add.remove(button.name) # Remove from the header buttons list
124
  filter_list.options.append(button.name) # Add back to the filter list options
 
119
  global paper_list
120
  button = event.obj # Get the clicked button
121
  if button.name in buttons_to_add:
122
+ print("Here lies the issue:", buttons_to_add.index(button.name), buttons_to_add)
123
  paper_list.remove(buttons_to_add.index(button.name))
124
  buttons_to_add.remove(button.name) # Remove from the header buttons list
125
  filter_list.options.append(button.name) # Add back to the filter list options