From e35a1e4a01afc448ef11011ed5d15f5bc40f4f26 Mon Sep 17 00:00:00 2001 From: Italo <45588475+italodamato@users.noreply.github.com> Date: Thu, 20 Jan 2022 21:00:33 +0000 Subject: [PATCH] fix flake8 --- freqtrade/plot/plotting.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/freqtrade/plot/plotting.py b/freqtrade/plot/plotting.py index 8384c49b7..3b322696c 100644 --- a/freqtrade/plot/plotting.py +++ b/freqtrade/plot/plotting.py @@ -235,11 +235,12 @@ def plot_trades(fig, trades: pd.DataFrame) -> make_subplots: # Trades can be empty if trades is not None and len(trades) > 0: # Create description for sell summarizing the trade - trades['desc'] = trades.apply(lambda row: f"{row['profit_ratio']:.2%}, " + \ - (f"{row['buy_tag']}, " if row['buy_tag'] is not None else "") + \ - f"{row['sell_reason']}, " + \ - f"{row['trade_duration']} min", - axis=1) + trades['desc'] = trades.apply( + lambda row: f"{row['profit_ratio']:.2%}, " + + (f"{row['buy_tag']}, " if row['buy_tag'] is not None else "") + + f"{row['sell_reason']}, " + + f"{row['trade_duration']} min", + axis=1) trade_buys = go.Scatter( x=trades["open_date"], y=trades["open_rate"],