Commit b6188989 authored by Kristian Tan's avatar Kristian Tan

inserts

parent 615fb1c3
...@@ -72,12 +72,15 @@ def create_entry(change_pin): ...@@ -72,12 +72,15 @@ def create_entry(change_pin):
pins[change_pin]['on_date'] = None pins[change_pin]['on_date'] = None
db.session.add(DailyUsage(date(2019, 11, 17), 10))
db.session.add(DailyUsage(date(2019, 11, 16), 10.2)) db.session.add(DailyUsage(date(2019, 11, 16), 10.2))
db.session.add(DailyUsage(date(2019, 11, 15), 9.3)) db.session.add(DailyUsage(date(2019, 11, 15), 9.3))
db.session.add(DailyUsage(date(2019, 11, 14), 12.5)) db.session.add(DailyUsage(date(2019, 11, 14), 12.5))
db.session.add(DailyUsage(date(2019, 11, 13), 9.9)) db.session.add(DailyUsage(date(2019, 11, 13), 9.9))
db.session.add(DailyUsage(date(2019, 11, 12), 11.2)) db.session.add(DailyUsage(date(2019, 11, 12), 11.2))
db.session.add(DailyUsage(date(2019, 11, 10), 10)) db.session.add(DailyUsage(date(2019, 11, 10), 10))
db.session.commit()
def generate_graph_data(): def generate_graph_data():
labels = [] labels = []
......
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