diff options
| author | Jocelyn Delande <jocelyn@crapouillou.net> | 2015-08-20 13:45:53 +0200 |
|---|---|---|
| committer | Jocelyn Delande <jocelyn@crapouillou.net> | 2016-06-15 10:20:37 +0200 |
| commit | 85abc0b1fcbee6549425fad87b3cdd55669672d2 (patch) | |
| tree | 1cc49e4bd911339073df8fbf47ea61bde44dc476 /budget/run.py | |
| parent | b57df5cd368eca946e5699237a954d37fb342b07 (diff) | |
| download | ihatemoney-mirror-85abc0b1fcbee6549425fad87b3cdd55669672d2.zip ihatemoney-mirror-85abc0b1fcbee6549425fad87b3cdd55669672d2.tar.gz ihatemoney-mirror-85abc0b1fcbee6549425fad87b3cdd55669672d2.tar.bz2 | |
Added a template filter not to show zero decimals on user weights
Diffstat (limited to 'budget/run.py')
| -rw-r--r-- | budget/run.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/budget/run.py b/budget/run.py index 51670f2..807ad12 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 |
