MCPcopy
hub / github.com/ndleah/python-mini-project / remove

Function remove

Todo_App/main.py:20–22  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

18 return redirect(url_for('index'))
19@app.route('/remove/<int:index>', methods=['GET'])
20def remove(index):
21 del todos[index]
22 return redirect(url_for('index'))
23
24@app.route('/edit/<int:index>', methods=['GET', 'POST'])
25def edit(index):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected