many changes
This commit is contained in:
parent
126ede37a4
commit
661941a65c
7 changed files with 102 additions and 21 deletions
|
|
@ -16,6 +16,7 @@ def handle_get_rates_inputs(
|
|||
end_date: Union[datetime.datetime, datetime.date],
|
||||
currencies: Union[None, str],
|
||||
dry_run: bool,
|
||||
ignore_warnings: bool,
|
||||
output: Union[str, pathlib.Path],
|
||||
):
|
||||
logger.info("Handling inputs.")
|
||||
|
|
@ -31,7 +32,8 @@ def handle_get_rates_inputs(
|
|||
tmp = {Currency(currency_code) for currency_code in currencies}
|
||||
currencies = tmp
|
||||
|
||||
if currencies is None:
|
||||
if currencies is None or currencies == "":
|
||||
logger.info("No currency list passed. Running for default currencies.")
|
||||
currencies = DEFAULT_CURRENCIES
|
||||
|
||||
# The Path constructor is idempotent, so this works equally fine if output
|
||||
|
|
@ -44,6 +46,7 @@ def handle_get_rates_inputs(
|
|||
"date_range": date_range,
|
||||
"currencies": currencies,
|
||||
"dry_run": dry_run,
|
||||
"ignore_warnings": ignore_warnings,
|
||||
"output": output,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue