Merge pull request #7085 from wagnercosta/feat/freqai

freqai: fix issue when bot restarts with same identifier, does not load predi…
This commit is contained in:
Robert Caulk
2022-07-15 20:00:53 +02:00
committed by GitHub

View File

@@ -76,7 +76,7 @@ class FreqaiDataDrawer:
:returns: :returns:
exists: bool = whether or not the drawer was located 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: if exists:
with open(self.full_path / str("historic_predictions.pkl"), "rb") as fp: with open(self.full_path / str("historic_predictions.pkl"), "rb") as fp:
self.historic_predictions = pickle.load(fp) self.historic_predictions = pickle.load(fp)