Merge pull request #15966 from codingCoffee/frankfurter
fix: changed currency exchange API to frankfurter
This commit is contained in:
commit
e8d3aa9cc9
@ -98,7 +98,7 @@ def get_exchange_rate(from_currency, to_currency, transaction_date=None, args=No
|
|||||||
|
|
||||||
if not value:
|
if not value:
|
||||||
import requests
|
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={
|
response = requests.get(api_url, params={
|
||||||
"base": from_currency,
|
"base": from_currency,
|
||||||
"symbols": to_currency
|
"symbols": to_currency
|
||||||
|
Loading…
x
Reference in New Issue
Block a user