Fix: Forgot to add route for static/app

This commit is contained in:
tanshu 2017-02-09 10:57:41 +05:30
parent 1468d43144
commit e3d60f8c53
2 changed files with 2 additions and 1 deletions

View File

@ -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('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('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('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('api_dashboard', '/api/Dashboard')
config.add_route('dashboard', '/Dashboard') config.add_route('dashboard', '/Dashboard')

View File

@ -73,7 +73,7 @@ def show_balance(request):
def balance(id_, date, dbsession): 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: if not account.type_object.balance_sheet:
return 0 return 0