diff --git a/influx_frontend.py b/influx_frontend.py index 648c9c9..ca86d22 100644 --- a/influx_frontend.py +++ b/influx_frontend.py @@ -44,6 +44,10 @@ def add_time(): if fuelcost != '': fuelcost = float(fuelcost) winter = request.form['winter'] + if winter == 'TRUE': + winter = True + else: + winter = False json_body = [ { @@ -54,7 +58,7 @@ def add_time(): "oilhealth": oilhealth, "fuel": fuel, "fuelcost": fuelcost, - "winter": bool(winter) + "winter": winter } } ] diff --git a/templates/index.html b/templates/index.html index d41ebad..78369c8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -47,9 +47,9 @@