Fix last_process related bug in RPC.health

This commit is contained in:
ASU
2023-02-27 12:14:38 +02:00
parent 44b1005077
commit 1d5608d627
7 changed files with 22 additions and 15 deletions

View File

@@ -127,7 +127,7 @@ class FreqtradeBot(LoggingMixin):
for minutes in [0, 15, 30, 45]:
t = str(time(time_slot, minutes, 2))
self._schedule.every().day.at(t).do(update)
self.last_process = datetime(1970, 1, 1, tzinfo=timezone.utc)
self.last_process: Optional[datetime] = None
self.strategy.ft_bot_start()
# Initialize protections AFTER bot start - otherwise parameters are not loaded.