diff --git a/budget/run.py b/budget/run.py index 51670f2b..807ad12a 100644 --- a/budget/run.py +++ b/budget/run.py @@ -9,6 +9,8 @@ from raven.contrib.flask import Sentry from web import main, db, mail from api import api from utils import PrefixedWSGI +from utils import minimal_round + app = Flask(__name__) @@ -37,6 +39,9 @@ configure() app.register_blueprint(main) app.register_blueprint(api) +# custom jinja2 filters +app.jinja_env.filters['minimal_round'] = minimal_round + # db db.init_app(app) db.app = app diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index b0ec89a4..1d8e9224 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -63,7 +63,7 @@ {% set balance = g.project.balance %} {% for member in g.project.members | sort(attribute='name') if member.activated or balance[member.id] != 0 %}