Wrap line correctly

This commit is contained in:
Matthias 2019-01-22 06:58:51 +01:00
parent 1e7431a7b8
commit 3221f883d3

View File

@ -545,8 +545,9 @@ class Exchange(object):
# Calculating ticker interval in second
interval_in_sec = constants.TICKER_INTERVAL_MINUTES[ticker_interval] * 60
if not (self._pairs_last_refresh_time.get((pair, ticker_interval), 0) + interval_in_sec >=
arrow.utcnow().timestamp and (pair, ticker_interval) in self._klines):
if not ((self._pairs_last_refresh_time.get((pair, ticker_interval), 0)
+ interval_in_sec) >= arrow.utcnow().timestamp
and (pair, ticker_interval) in self._klines):
input_coroutines.append(self._async_get_candle_history(pair, ticker_interval))
else:
logger.debug("Using cached ohlcv data for %s, %s ...", pair, ticker_interval)