|
|
@@ -617,7 +617,7 @@ def uncross(item_id):
|
|
|
def rem_todo_item(item_id):
|
|
|
todolist_items = current_app.config['LIST']
|
|
|
if 0 <= item_id < len(todolist_items): # Make sure the item exists
|
|
|
- removed = todolist_items.pop([item_id])
|
|
|
+ removed = todolist_items.pop(item_id)
|
|
|
current_app.logger.info(f'Removed \"{removed}\" from the to-do list.')
|
|
|
if save_todolist(todolist_items): # Save todo list
|
|
|
current_app.logger.info('Saved to-do list.')
|