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