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