Refactor the comparison involving not

Signed-off-by: shubhendra <withshubh@gmail.com>
This commit is contained in:
shubhendra
2021-03-21 17:14:35 +05:30
committed by Shubhendra
parent 4d81834912
commit f47dc31786
5 changed files with 4 additions and 21 deletions

View File

@@ -806,7 +806,7 @@ class Exchange:
# Gather coroutines to run
for pair, timeframe in set(pair_list):
if (not ((pair, timeframe) in self._klines)
if (((pair, timeframe) not in self._klines)
or self._now_is_time_to_refresh(pair, timeframe)):
input_coroutines.append(self._async_get_candle_history(pair, timeframe,
since_ms=since_ms))