Commit 1fab41c1 authored by Kristian Tan's avatar Kristian Tan

Show new device

parent bb1bee94
...@@ -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']: if pins[key]['name'] is 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