From c1bd9e77018c64850e7d9314da94868d26e45980 Mon Sep 17 00:00:00 2001 From: "Bobby (aider)" Date: Tue, 11 Feb 2025 19:07:56 -0800 Subject: [PATCH] fix: Resolve f-string syntax error in trading plan page format_func --- src/streamlit_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streamlit_app.py b/src/streamlit_app.py index e40d15b..c41cc0a 100644 --- a/src/streamlit_app.py +++ b/src/streamlit_app.py @@ -1205,7 +1205,7 @@ def trading_plan_page(): f"{t['ticker']} - {t['entry_date']} - ${t['entry_price']:.2f} " f"({t['direction']}) - {t['strategy']} " f"{'[Closed]' if t['exit_price'] else '[Open]'} " - f"{'P/L: $' + f'{t[\"profit_loss\"]:.2f}' if t['profit_loss'] is not None else ''}" + f"{'P/L: $' + format(t['profit_loss'], '.2f') if t['profit_loss'] is not None else ''}" for t in available_trades if t['id'] == x ) )