Commit f699038b authored by Kristian Tan's avatar Kristian Tan

Add entry to db

parent 78811e2f
......@@ -74,7 +74,10 @@ def create_entry(change_pin):
db.create_all()
db.session.add(DailyUsage(date=date(2019, 11, 12), kwhUsed=8))
db.session.add(DailyUsage(date=date(2019, 11, 11), kwhUsed=6.7))
db.session.add(DailyUsage(date=date(2019, 11, 10), kwhUsed=9.2))
db.session.add(DailyUsage(date=date(2019, 11, 9), kwhUsed=8.4))
db.session.add(DailyUsage(date=date(2019, 11, 8), kwhUsed=9))
db.session.commit()
daily_total = get_todays_usage()
todays_cost = get_todays_cost()
......
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