From 6347d9b88b2e02ce3c8a3e778c7a48001f42c2db Mon Sep 17 00:00:00 2001 From: xxm Date: Thu, 20 Aug 2026 22:59:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(clean=5Fwatchlist):=20=E4=BF=AE=E5=A4=8Dmai?= =?UTF-8?q?n()=E5=87=BD=E6=95=B0=E5=8C=96=E7=BC=A9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/clean_watchlist.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/profile-scripts/clean_watchlist.py b/deploy/profile-scripts/clean_watchlist.py index 51dc8747..fc5599dd 100644 --- a/deploy/profile-scripts/clean_watchlist.py +++ b/deploy/profile-scripts/clean_watchlist.py @@ -18,15 +18,15 @@ def main(): holding_codes = set() pf = read_portfolio() for h in pf.get("holdings", []): - c = h.get("code", "") - if c: + c = h.get("code", "") + if c: holding_codes.add(c) print(f"持仓 codes: {sorted(holding_codes)}") -# Load watchlist + # Load watchlist wl = read_watchlist() -stocks = wl.get("stocks", []) + stocks = wl.get("stocks", []) before = len(stocks) # Remove held stocks