Commit 0ed5ba8f authored by Kristian Tan's avatar Kristian Tan

Rename pins instead of deleting them

parent 44af475d
......@@ -188,7 +188,8 @@ def delete_pin(delete_pin):
delete_pin = int(delete_pin)
for key in pins:
if key == delete_pin:
pins.pop(delete_pin)
pins[delete_pin]['name'] = None
pins[delete_pin]['Wattage'] = None
break
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