fix issue when bot restarts with same identifier, does not load prediction history

This commit is contained in:
Wagner Costa Santos 2022-07-14 18:55:24 -03:00
parent 4141d165ff
commit ca2029a46b
1 changed files with 1 additions and 1 deletions

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)