From ad652817ef6875ac1d1705178f3c2921df758e55 Mon Sep 17 00:00:00 2001 From: Robert Caulk Date: Mon, 19 Sep 2022 11:11:23 +0200 Subject: [PATCH] Ensure train ordering after restart Ensure lowest timestamps get trained first after restart --- 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 3f5eff167..fa9d5043b 100644 --- a/freqtrade/freqai/freqai_interface.py +++ b/freqtrade/freqai/freqai_interface.py @@ -711,7 +711,7 @@ class IFreqaiModel(ABC): key=lambda k: k[1]['trained_timestamp']) for pair in pair_dict_sorted: if pair[0] in current_pairlist: - best_queue.appendleft(pair[0]) + best_queue.appendright(pair[0]) for pair in current_pairlist: if pair not in best_queue: best_queue.appendleft(pair)