|
@@ -616,7 +616,6 @@ def uncross(item_id):
|
|
|
@requires_login
|
|
@requires_login
|
|
|
def rem_todo_item(item_id):
|
|
def rem_todo_item(item_id):
|
|
|
todolist_items = current_app.config['LIST']
|
|
todolist_items = current_app.config['LIST']
|
|
|
- item_item_id = name
|
|
|
|
|
if 0 <= item_id < len(todolist_items): # Make sure the item exists
|
|
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.')
|
|
current_app.logger.info(f'Removed \"{removed}\" from the to-do list.')
|