From 3f722632788f13e471b9ed5fe4f0301f38634d8d Mon Sep 17 00:00:00 2001 From: robcaulk Date: Sun, 29 May 2022 20:02:43 +0200 Subject: [PATCH] allow pairs deeper in the queue to get trained if the higher priority pairs dont need training --- freqtrade/freqai/freqai_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqai/freqai_interface.py b/freqtrade/freqai/freqai_interface.py index 90d96ad87..319240248 100644 --- a/freqtrade/freqai/freqai_interface.py +++ b/freqtrade/freqai/freqai_interface.py @@ -348,7 +348,7 @@ class IFreqaiModel(ABC): # f'{sorted(self.data_drawer.pair_dict.items(), key=lambda item: item[1])}') dh.save_data(model, coin=metadata['pair']) - if self.data_drawer.pair_dict[metadata['pair']['priority']] == 1: + if self.data_drawer.pair_dict[metadata['pair']]['priority'] == 1: self.data_drawer.pair_to_end_of_training_queue(metadata['pair']) self.training_on_separate_thread = False self.retrain = False