Commit c3406236 authored by Kristian Tan's avatar Kristian Tan

Check type of key

parent 3aa375d2
...@@ -186,6 +186,10 @@ def handle_new_device(): ...@@ -186,6 +186,10 @@ 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)
print(type(key))
print(type(delete_pin))
if key == delete_pin: if key == delete_pin:
pins.pop(delete_pin) pins.pop(delete_pin)
......
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