From be8994c2d548e98c12ebace5ace3653cdf7acb54 Mon Sep 17 00:00:00 2001 From: guopengfa Date: Sun, 18 Jan 2026 20:26:46 +0800 Subject: [PATCH] =?UTF-8?q?fix=20bug=EF=BC=9Ahtml=20report=20direction=20r?= =?UTF-8?q?ight.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend_api_python/app/services/portfolio_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend_api_python/app/services/portfolio_monitor.py b/backend_api_python/app/services/portfolio_monitor.py index 1a9f620..0c35f03 100644 --- a/backend_api_python/app/services/portfolio_monitor.py +++ b/backend_api_python/app/services/portfolio_monitor.py @@ -115,7 +115,7 @@ def _get_positions_for_monitor(position_ids: List[int] = None, user_id: int = No symbol = row.get('symbol') entry_price = float(row.get('entry_price') or 0) quantity = float(row.get('quantity') or 0) - side = row.get('side') or 'long', + side = row.get('side') or 'long' group_name = row.get('group_name') # Get current price (use realtime price API)