From f389c562595f74bea86e49c29949f4a7b0e78900 Mon Sep 17 00:00:00 2001 From: dark0dave <52840419+dark0dave@users.noreply.github.com> Date: Wed, 29 Apr 2020 21:57:08 +0100 Subject: 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 --- ihatemoney/run.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ihatemoney/run.py') 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 -- cgit v1.1