passing args to process
This commit is contained in:
parent
90756d4f80
commit
ff6826a816
2 changed files with 15 additions and 3 deletions
|
|
@ -74,11 +74,13 @@ def get_rates(
|
||||||
dry_run: bool,
|
dry_run: bool,
|
||||||
output: pathlib.Path,
|
output: pathlib.Path,
|
||||||
):
|
):
|
||||||
inputs = handle_get_rates_inputs(
|
get_rates_inputs = handle_get_rates_inputs(
|
||||||
start_date=start_date,
|
start_date=start_date,
|
||||||
end_date=end_date,
|
end_date=end_date,
|
||||||
currencies=currencies,
|
currencies=currencies,
|
||||||
dry_run=dry_run,
|
dry_run=dry_run,
|
||||||
output=output,
|
output=output,
|
||||||
)
|
)
|
||||||
run_get_rates()
|
logger.info("Starting get-rates process.")
|
||||||
|
run_get_rates(**get_rates_inputs)
|
||||||
|
logger.info("Finished get-rates process.")
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,13 @@
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
import pathlib
|
||||||
|
from typing import List
|
||||||
|
|
||||||
|
from money.currency import Currency
|
||||||
from xecd_rates_client import XecdClient
|
from xecd_rates_client import XecdClient
|
||||||
|
|
||||||
|
from xexe.utils import DateRange
|
||||||
|
|
||||||
logger = logging.getLogger()
|
logger = logging.getLogger()
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -44,5 +49,10 @@ def run_xe_healthcheck() -> None:
|
||||||
logger.info(account_info_response)
|
logger.info(account_info_response)
|
||||||
|
|
||||||
|
|
||||||
def run_get_rates():
|
def run_get_rates(
|
||||||
|
date_range: DateRange,
|
||||||
|
currencies: List[Currency],
|
||||||
|
dry_run: bool,
|
||||||
|
output: pathlib.Path,
|
||||||
|
) -> None:
|
||||||
logger.info("Getting rates")
|
logger.info("Getting rates")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue