EasySci commited on
Commit
44cc9b1
·
1 Parent(s): 133b7a9

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +1 -1
app2.py CHANGED
@@ -117,7 +117,7 @@ def update_header():
117
  def remove_from_header(event):
118
  global paper_list
119
  button = event.obj # Get the clicked button
120
- print("Here lies the issue:", button.name, buttons_to_add, flush = True)
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
 
117
  def remove_from_header(event):
118
  global paper_list
119
  button = event.obj # Get the clicked button
120
+ print("Here lies the issue:", buttons_to_add.index(button.name), buttons_to_add, flush = True)
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