remove unused code
This commit is contained in:
parent
b52af85987
commit
a7a37d4614
2 changed files with 1 additions and 45 deletions
|
|
@ -69,27 +69,6 @@ class DateRange:
|
|||
current_date += datetime.timedelta(days=1)
|
||||
|
||||
|
||||
def generate_currency_and_dates_combinations(
|
||||
date_range: DateRange, currencies: Set[Currency]
|
||||
) -> Tuple[dict]:
|
||||
currency_pairs = list(combinations(currencies, 2))
|
||||
|
||||
currency_date_combinations = []
|
||||
for date in date_range:
|
||||
for from_currency, to_currency in currency_pairs:
|
||||
currency_date_combinations.append(
|
||||
{
|
||||
"from_currency": from_currency,
|
||||
"to_currency": to_currency,
|
||||
"date": date,
|
||||
}
|
||||
)
|
||||
|
||||
currency_date_combinations = tuple(currency_date_combinations)
|
||||
|
||||
return currency_date_combinations
|
||||
|
||||
|
||||
def generate_pairs_and_dates_combinations(
|
||||
date_range: DateRange, pairs: Set[CurrencyPair]
|
||||
) -> Tuple[dict]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue