move function
This commit is contained in:
parent
8de0c72b14
commit
de8828a9cb
2 changed files with 11 additions and 6 deletions
|
|
@ -7,6 +7,7 @@ from money.currency import Currency, CurrencyHelper
|
|||
from money.money import Money
|
||||
from xecd_rates_client import XecdClient
|
||||
|
||||
from xexe.constants import RATES_SOURCES
|
||||
from xexe.exchange_rates import ExchangeRate
|
||||
|
||||
|
||||
|
|
@ -79,3 +80,7 @@ class XERateFetcher(RateFetcher):
|
|||
rate_date=rate_date,
|
||||
rate=rate,
|
||||
)
|
||||
|
||||
|
||||
def build_rate_fetcher(rates_source: str):
|
||||
return RATES_SOURCES[rates_source]()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue