chore: make condition more logical
This commit is contained in:
@@ -457,7 +457,7 @@ AVAILABLE_CLI_OPTIONS = {
|
|||||||
"no_parallel_download": Arg(
|
"no_parallel_download": Arg(
|
||||||
"--no-parallel-download",
|
"--no-parallel-download",
|
||||||
help="Disable the Parallel Downloader.",
|
help="Disable the Parallel Downloader.",
|
||||||
action="store_false",
|
action="store_true",
|
||||||
),
|
),
|
||||||
"new_pairs_days": Arg(
|
"new_pairs_days": Arg(
|
||||||
"--new-pairs-days",
|
"--new-pairs-days",
|
||||||
|
|||||||
@@ -389,7 +389,7 @@ def refresh_backtest_ohlcv_data(
|
|||||||
for timeframe in timeframes:
|
for timeframe in timeframes:
|
||||||
# Get fast candles via parallel method on first loop through per timeframe
|
# Get fast candles via parallel method on first loop through per timeframe
|
||||||
# and candle type. Downloads all the pairs in the list and stores them.
|
# and candle type. Downloads all the pairs in the list and stores them.
|
||||||
if no_parallel_download and (
|
if not no_parallel_download and (
|
||||||
((pair, timeframe, candle_type) not in fast_candles)
|
((pair, timeframe, candle_type) not in fast_candles)
|
||||||
and (erase is False)
|
and (erase is False)
|
||||||
and (prepend is False)
|
and (prepend is False)
|
||||||
|
|||||||
Reference in New Issue
Block a user