From 0d0bedd7b0c01ed5be219f09531eec17051bc4e8 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Thu, 28 Sep 2023 13:38:56 +0200 Subject: [PATCH] Implement frakfurter.app as new exchange host Closes #5631 --- InvenTree/InvenTree/exchange.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/InvenTree/InvenTree/exchange.py b/InvenTree/InvenTree/exchange.py index 0225270f27..c186b8023d 100644 --- a/InvenTree/InvenTree/exchange.py +++ b/InvenTree/InvenTree/exchange.py @@ -15,19 +15,19 @@ from common.settings import currency_code_default, currency_codes class InvenTreeExchange(SimpleExchangeBackend): """Backend for automatically updating currency exchange rates. - Uses the `exchangerate.host` service API + Uses the `frankfurter.app` service API """ - name = "InvenTreeExchange" + name = "InvenTreeExchange-frankfurter" def __init__(self): """Set API url.""" - self.url = "https://api.exchangerate.host/latest" + self.url = "https://api.frankfurter.app/latest" super().__init__() def get_params(self): - """Placeholder to set API key. Currently not required by `exchangerate.host`.""" + """Placeholder to set API key. Currently not required by `frankfurter.app`.""" # No API key is required return { }