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