Commit fae0e213 authored by Kristian Tan's avatar Kristian Tan

Removed relative import of daily_usage

parent 7cb1bc71
...@@ -3,8 +3,7 @@ import RPi.GPIO as GPIO ...@@ -3,8 +3,7 @@ import RPi.GPIO as GPIO
from flask_sqlalchemy import SQLAlchemy from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import create_engine from sqlalchemy import create_engine
import os import os
# from daily_usage import from daily_usage import DailyUsage
from . import DailyUsage
app = Flask(__name__) app = Flask(__name__)
os.environ['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///energyUsage' os.environ['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///energyUsage'
......
...@@ -7,4 +7,4 @@ class DailyUsage(db.Model): ...@@ -7,4 +7,4 @@ class DailyUsage(db.Model):
hours = db.Column(db.Integer(120), unique=False) hours = db.Column(db.Integer(120), unique=False)
def __repr__(self): def __repr__(self):
return '<User %r>' % self.id return '<DailyUsage %r>' % self.id
\ No newline at end of file \ 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