From 3aca3a71337685b9ca07734fab5c1bba4043f47c Mon Sep 17 00:00:00 2001 From: Reigo Reinmets Date: Sat, 18 Dec 2021 18:55:47 +0200 Subject: [PATCH] Use parentheses instead of backslash --- freqtrade/persistence/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/persistence/models.py b/freqtrade/persistence/models.py index e1f16a8dc..d169c4d27 100644 --- a/freqtrade/persistence/models.py +++ b/freqtrade/persistence/models.py @@ -579,9 +579,9 @@ class LocalTrade(): total_amount = 0.0 total_stake = 0.0 for temp_order in self.orders: - if temp_order.ft_is_open or \ - temp_order.ft_order_side != 'buy' or \ - temp_order.status not in NON_OPEN_EXCHANGE_STATES: + if (temp_order.ft_is_open or + (temp_order.ft_order_side != 'buy') or + (temp_order.status not in NON_OPEN_EXCHANGE_STATES)): continue tmp_amount = temp_order.amount