Improve readability of "now_is_time_to_refresh"

This commit is contained in:
Matthias 2022-10-04 06:53:35 +02:00
parent 7f308c5186
commit bc6729f724

View File

@ -1962,10 +1962,8 @@ class Exchange:
interval_in_sec = timeframe_to_seconds(timeframe)
return not (
(self._pairs_last_refresh_time.get(
(pair, timeframe, candle_type),
0
) + interval_in_sec) >= arrow.utcnow().int_timestamp
(self._pairs_last_refresh_time.get((pair, timeframe, candle_type), 0)
+ interval_in_sec) >= arrow.utcnow().int_timestamp
)
@retrier_async