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