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
commit 4ef2ed2f1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)