fix(clean_watchlist): 修复main()函数化缩进

This commit is contained in:
xxm
2026-08-20 22:59:14 +08:00
parent 99cce27a2c
commit 6347d9b88b
+4 -4
View File
@@ -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