fix(clean_watchlist): 修复main()函数化缩进
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user