Fix: Forgot to add route for static/app
This commit is contained in:
parent
1468d43144
commit
e3d60f8c53
@ -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')
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user