Commit 7bdabfe8 authored by Kristian Tan's avatar Kristian Tan

Displaying daily total on html

parent 4fd8ccee
......@@ -99,7 +99,7 @@ def toggle_pin(change_pin):
else:
message += " on."
pins[change_pin]['on_time'] = datetime.now()
pins[change_pin]['on_date'] = datetime.today()
pins[change_pin]['on_date'] = datetime.today().date()
for pin in pins:
pins[pin]['state'] = GPIO.input(pin)
......
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