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:
commit
4ef2ed2f1b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user