Reformat code on new version

This commit is contained in:
hoeckxer 2021-01-12 08:24:11 +01:00
parent 71f45021b9
commit 1f6a71fdd9

View File

@ -489,8 +489,7 @@ class IStrategy(ABC):
def ignore_expired_candle(self, latest_date: datetime, current_time: datetime,
timeframe_seconds: int, buy: bool):
if self.ignore_buying_expired_candle_after \
and buy:
if self.ignore_buying_expired_candle_after and buy:
time_delta = current_time - (latest_date + timedelta(seconds=timeframe_seconds))
return time_delta.total_seconds() > self.ignore_buying_expired_candle_after
else: