Quick bug fix

This commit is contained in:
Robert Caulk 2022-06-06 15:11:54 -06:00 committed by GitHub
parent d6b8801f41
commit 2451ed8c88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,7 +266,7 @@ class FreqaiDataDrawer:
def update_follower_metadata(self):
# follower needs to load from disk to get any changes made by leader to pair_dict
self.load_drawer_from_disk()
if self.config.get('freqai', {})('purge_old_models', False):
if self.config.get('freqai', {}).get('purge_old_models', False):
self.purge_old_models()
# to be used if we want to send predictions directly to the follower instead of forcing