Commit 1356aaa1 authored by Kristian Tan's avatar Kristian Tan

Added field for on date

parent c7a12842
......@@ -38,7 +38,6 @@ db.create_all()
# TODO: be able to query db by date
daily_total = 0
latest_entry = db.session.query(DailyUsage).order_by(DailyUsage.id.desc()).first()
print(latest_entry.date)
if latest_entry and latest_entry.date == datetime.today():
daily_total = latest_entry.on_time_seconds
......
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