fix: changed currency exchange API to frankfurter

- Switched to Frankfurter's public API (frankfurter.app) from
self hosted API (frankfurter.erpnext.org)
This commit is contained in:
Ameya Shenoy 2018-11-12 15:11:04 +05:30
parent f001a9eb4f
commit 438490fd29
No known key found for this signature in database
GPG Key ID: AC016A555657D0A3

View File

@ -95,7 +95,7 @@ def get_exchange_rate(from_currency, to_currency, transaction_date=None):
if not value:
import requests
api_url = "https://frankfurter.erpnext.org/{0}".format(transaction_date)
api_url = "https://frankfurter.app/{0}".format(transaction_date)
response = requests.get(api_url, params={
"base": from_currency,
"symbols": to_currency