fix: Resolve f-string syntax error in trading plan trade formatting

This commit is contained in:
Bobby (aider) 2025-02-11 19:07:42 -08:00
parent eeb7e6d682
commit 4a0bc2bb0f

View File

@ -1205,7 +1205,7 @@ def trading_plan_page():
f"{t['ticker']} - {t['entry_date']} - ${t['entry_price']:.2f} " f"{t['ticker']} - {t['entry_date']} - ${t['entry_price']:.2f} "
f"({t['direction']}) - {t['strategy']} " f"({t['direction']}) - {t['strategy']} "
f"{'[Closed]' if t['exit_price'] else '[Open]'} " f"{'[Closed]' if t['exit_price'] else '[Open]'} "
f"{f'P/L: ${t['profit_loss']:.2f}' if t['profit_loss'] is not None else ''}" f"{'P/L: $' + f'{t[\"profit_loss\"]:.2f}' if t['profit_loss'] is not None else ''}"
for t in available_trades if t['id'] == x for t in available_trades if t['id'] == x
) )
) )