Spaces:
Sleeping
Sleeping
Update app2.py
Browse files
app2.py
CHANGED
|
@@ -119,7 +119,7 @@ def remove_from_header(event):
|
|
| 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
|
| 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
|
| 125 |
update_header() # Update the header and filter 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 |
+
del paper_list[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
|
| 125 |
update_header() # Update the header and filter list
|