From e3d60f8c53ca53715649a875e6a72014d4a93b3d Mon Sep 17 00:00:00 2001 From: tanshu Date: Thu, 9 Feb 2017 10:57:41 +0530 Subject: [PATCH] Fix: Forgot to add route for static/app --- brewman/routes.py | 1 + brewman/views/account.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/brewman/routes.py b/brewman/routes.py index 83bdcd7a..70a67abb 100644 --- a/brewman/routes.py +++ b/brewman/routes.py @@ -12,6 +12,7 @@ def includeme(config): config.add_static_view('css', 'brewman:static/css', cache_max_age=get_age(10)) config.add_static_view('partial', 'brewman:static/partial', cache_max_age=get_age(10)) config.add_static_view('template', 'brewman:static/template', cache_max_age=get_age(10)) + config.add_static_view('app', 'brewman:static/app', cache_max_age=get_age(10)) config.add_route('api_dashboard', '/api/Dashboard') config.add_route('dashboard', '/Dashboard') diff --git a/brewman/views/account.py b/brewman/views/account.py index 35bb63f9..f3aab6cf 100644 --- a/brewman/views/account.py +++ b/brewman/views/account.py @@ -73,7 +73,7 @@ def show_balance(request): def balance(id_, date, dbsession): - account = dbsession.query(Ledger).filter(Ledger.id == id_).first() + account = dbsession.query(LedgerBase).filter(LedgerBase.id == id_).first() if not account.type_object.balance_sheet: return 0