Commit 8cf43264 authored by Kristian Tan's avatar Kristian Tan

Added self param to func

parent a2ccde0b
......@@ -9,8 +9,8 @@ class DailyUsageService:
def test_me(msg):
print(msg)
@staticmethod
def get_todays_usage():
def get_todays_usage(self):
latest_entry = DailyUsage.query.order_by(desc(DailyUsage.date)).first()
# latest_entry = db.session.query(DailyUsage).order_by(DailyUsage.date.asc()).first()
if latest_entry:
......
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