Commit f36a9c1f authored by Kristian Tan's avatar Kristian Tan

Added id to constructor

parent dc06417c
......@@ -24,7 +24,8 @@ class DailyUsage(db.Model):
date = db.Column(db.DateTime, unique=True, nullable=False)
hours = db.Column(db.String, unique=False)
def __init__(self, date, hours):
def __init__(self, id, date, hours):
self.id = id
self.date = date
self.hours = hours
......
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