Commit 850ebaa4 authored by Kristian Tan's avatar Kristian Tan

imports

parent 7fc114e2
...@@ -4,7 +4,7 @@ from flask_sqlalchemy import SQLAlchemy ...@@ -4,7 +4,7 @@ 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.daily_usage_service from services.daily_usage_service import DailyUsageService
# from daily_usage import DailyUsage # from daily_usage import DailyUsage
app = Flask(__name__) app = Flask(__name__)
...@@ -100,7 +100,7 @@ db.create_all() ...@@ -100,7 +100,7 @@ db.create_all()
daily_total = get_todays_usage() daily_total = get_todays_usage()
todays_cost = get_todays_cost() todays_cost = get_todays_cost()
print(get_todays_usage()) print(get_todays_usage())
print(daily_usage_service.DailyUsageService.get_todays_usage()) print(DailyUsageService.get_todays_usage())
print(get_todays_cost()) print(get_todays_cost())
# Create dictionary to store pin info # Create dictionary to store pin info
......
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