Commit 849cd3f3 authored by Kristian Tan's avatar Kristian Tan

debugging

parent 546fb786
......@@ -91,9 +91,8 @@ def toggle_pin(change_pin):
print(latest_entry.on_time_seconds)
else:
print("NEW ENTRY")
print("SECS")
print(elapsed)
entry = DailyUsage(date=start_date, on_time_seconds=elapsed)
print(entry.on_time_seconds)
db.session.add(entry)
db.session.commit()
......
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