Commit 4067fc51 authored by Kristian Tan's avatar Kristian Tan

moved import

parent 673aa969
...@@ -4,7 +4,6 @@ from flask_sqlalchemy import SQLAlchemy ...@@ -4,7 +4,6 @@ from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import asc, desc from sqlalchemy import asc, desc
import os import os
from datetime import datetime, date, timedelta from datetime import datetime, date, timedelta
from services import daily_usage_service
# from daily_usage import DailyUsage # from daily_usage import DailyUsage
app = Flask(__name__) app = Flask(__name__)
...@@ -33,6 +32,7 @@ class DailyUsage(db.Model): ...@@ -33,6 +32,7 @@ class DailyUsage(db.Model):
def __repr__(self): def __repr__(self):
return '<DailyUsage %r, %r, %r>' % (self.id, self.date, self.kwhUsed) return '<DailyUsage %r, %r, %r>' % (self.id, self.date, self.kwhUsed)
from services import daily_usage_service
os.environ['cost_per_kWh'] = '0.1622' os.environ['cost_per_kWh'] = '0.1622'
......
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