Commit 2db704db authored by Kristian Tan's avatar Kristian Tan

Show new device

parent 77f48bdc
...@@ -168,7 +168,7 @@ def handle_new_device(): ...@@ -168,7 +168,7 @@ def handle_new_device():
new_name = request.form['new_device_name'] new_name = request.form['new_device_name']
new_wattage = request.form['new_device_wattage'] new_wattage = request.form['new_device_wattage']
for key in pins: for key in pins:
if pins[key].name != None: if pins[key]['name'] != None:
pins[key]['name'] = new_name pins[key]['name'] = new_name
pins[key]['wattage'] = new_wattage pins[key]['wattage'] = new_wattage
break break
......
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