Commit b18566d7 authored by Kristian Tan's avatar Kristian Tan

Show new device

parent ba14693e
......@@ -166,7 +166,7 @@ def add_new_device():
@app.route('/handle_new_device', methods=['POST'])
def handle_new_device():
new_name = request.form['new_device_name']
new_wattage = request.form['new_device_wattage']
new_wattage = float(request.form['new_device_wattage'])
for key in pins:
if pins[key]['name'] is None:
pins[key]['name'] = new_name
......
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