From b1f88e88612285c5ccaa219c6d9366a575c30de9 Mon Sep 17 00:00:00 2001 From: hippocritical Date: Sat, 18 Mar 2023 20:02:55 +0100 Subject: [PATCH] fixed typo from trades to trade --- freqtrade/strategy/strategyupdater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/strategy/strategyupdater.py b/freqtrade/strategy/strategyupdater.py index bc692b71c..2669dcc4a 100644 --- a/freqtrade/strategy/strategyupdater.py +++ b/freqtrade/strategy/strategyupdater.py @@ -181,7 +181,7 @@ class NameUpdater(ast_comments.NodeTransformer): def visit_Attribute(self, node): if ( isinstance(node.value, ast_comments.Name) - and node.value.id == 'trades' + and node.value.id == 'trade' and node.attr == 'nr_of_successful_buys' ): node.attr = 'nr_of_successful_entries'