From ca2029a46bc9d36c10593242261d66cc60e3585a Mon Sep 17 00:00:00 2001 From: Wagner Costa Santos Date: Thu, 14 Jul 2022 18:55:24 -0300 Subject: [PATCH] fix issue when bot restarts with same identifier, does not load prediction history --- freqtrade/freqai/data_drawer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqai/data_drawer.py b/freqtrade/freqai/data_drawer.py index b65d8623a..321295c53 100644 --- a/freqtrade/freqai/data_drawer.py +++ b/freqtrade/freqai/data_drawer.py @@ -76,7 +76,7 @@ class FreqaiDataDrawer: :returns: exists: bool = whether or not the drawer was located """ - exists = Path(self.full_path / str("historic_predictions.json")).resolve().exists() + exists = Path(self.full_path / str("historic_predictions.pkl")).resolve().exists() if exists: with open(self.full_path / str("historic_predictions.pkl"), "rb") as fp: self.historic_predictions = pickle.load(fp)