Commit f90d6491 authored by Kristian Tan's avatar Kristian Tan

Parsing

parent b5c10317
......@@ -185,8 +185,9 @@ def handle_new_device():
@app.route('/remove/<delete_pin>')
def delete_pin(delete_pin):
delete_pin = int(delete_pin)
for key in pins:
if key == int(delete_pin):
if key == delete_pin:
pins.pop(delete_pin)
template_data = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment