Skip to content

Commit 12c9b5a

Browse files
authored
Make sure add_todo starts in line 95 and ends in 109 (#71)
1 parent 50ef95b commit 12c9b5a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

app.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ def clear_completed():
7474
todo = [t for t in todos if not t['completed']]
7575
return '', 204
7676

77-
@app.route('/todos/remove_all', methods=['DELETE'])
78-
def remove_all():
79-
Store.getInstance().todos = []
80-
return '', 204
8177

8278
@app.route('/todos', methods=['UPDATE'])
8379
def update_todo():
@@ -132,6 +128,13 @@ def duplicate_todo(todoId):
132128
break
133129
return '', 204
134130

131+
132+
@app.route('/todos/remove_all', methods=['DELETE'])
133+
def remove_all():
134+
Store.getInstance().todos = []
135+
return '', 204
136+
137+
135138
@app.route('/favicon.ico')
136139
def favicon():
137140
return send_from_directory(os.path.join(app.root_path, 'static'), 'rookout_favicon.ico', mimetype='image/vnd.microsoft.icon')

0 commit comments

Comments
 (0)