Commit 78811e2f authored by Kristian Tan's avatar Kristian Tan

Add entry to db

parent 129b084d
......@@ -74,7 +74,8 @@ def create_entry(change_pin):
db.create_all()
db.session.add(DailyUsage(date=date(2019, 11, 12), kwhUsed=8))
db.session.commit()
daily_total = get_todays_usage()
todays_cost = get_todays_cost()
......
......@@ -109,4 +109,4 @@
</script>
</body>
</html>
\ No newline at end of file
</html>
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