Commit 77f48bdc authored by Kristian Tan's avatar Kristian Tan

Show new device

parent 9397f4ca
...@@ -167,7 +167,7 @@ def add_new_device(): ...@@ -167,7 +167,7 @@ def add_new_device():
def handle_new_device(): 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 dict: 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
......
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