Commit db48d17b authored by Kristian Tan's avatar Kristian Tan

Null check

parent 115ba414
......@@ -77,6 +77,8 @@ def toggle_pin(change_pin):
start_time = pins[change_pin]['on_time']
# Get the elapsed time and strip away milliseconds
elapsed = (datetime.now() - start_time).total_seconds()
print("SECS")
print(elapsed)
# Format the time
start_date_string = datetime.strftime(start_time, '%Y-%m-%d')
......
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