diff options
| author | dark0dave <52840419+dark0dave@users.noreply.github.com> | 2020-04-29 21:57:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-29 22:57:08 +0200 |
| commit | f389c562595f74bea86e49c29949f4a7b0e78900 (patch) | |
| tree | c3c0ac339ad002f47e2be9cd3a46d347012b1d70 /ihatemoney/run.py | |
| parent | 162193c787341118621b36b4c8933bbe8af092df (diff) | |
| download | ihatemoney-mirror-f389c562595f74bea86e49c29949f4a7b0e78900.zip ihatemoney-mirror-f389c562595f74bea86e49c29949f4a7b0e78900.tar.gz ihatemoney-mirror-f389c562595f74bea86e49c29949f4a7b0e78900.tar.bz2 | |
Feature/currencies (#541)
Now each project can have a currency, default to None.
Each bill can use a different currency, and a conversion to project default currency is done on settle.
Fix #512
Diffstat (limited to 'ihatemoney/run.py')
| -rw-r--r-- | ihatemoney/run.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ihatemoney/run.py b/ihatemoney/run.py index c4b5323..b6c8cbb 100644 --- a/ihatemoney/run.py +++ b/ihatemoney/run.py @@ -10,6 +10,7 @@ from werkzeug.middleware.proxy_fix import ProxyFix from ihatemoney import default_settings from ihatemoney.api.v1 import api as apiv1 +from ihatemoney.currency_convertor import CurrencyConverter from ihatemoney.models import db from ihatemoney.utils import ( IhmJSONEncoder, @@ -137,6 +138,9 @@ def create_app( # Configure the a, root="main"pplication setup_database(app) + # Setup Currency Cache + CurrencyConverter() + mail = Mail() mail.init_app(app) app.mail = mail |
