fix issue when bot restarts with same identifier, does not load prediction history
This commit is contained in:
parent
4141d165ff
commit
ca2029a46b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user