Commit b5c10317 authored by Kristian Tan's avatar Kristian Tan

Parsing

parent c3406236
...@@ -186,11 +186,7 @@ def handle_new_device(): ...@@ -186,11 +186,7 @@ def handle_new_device():
@app.route('/remove/<delete_pin>') @app.route('/remove/<delete_pin>')
def delete_pin(delete_pin): def delete_pin(delete_pin):
for key in pins: for key in pins:
print(key) if key == int(delete_pin):
print(type(key))
print(type(delete_pin))
if key == delete_pin:
pins.pop(delete_pin) pins.pop(delete_pin)
template_data = { 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