From 6a036faa2876215f8591be075edc445c849475c0 Mon Sep 17 00:00:00 2001 From: xxm Date: Thu, 20 Aug 2026 23:13:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(import=5Fholding=5Fxls):=20=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E5=90=8E=E8=B0=83=E7=94=A8clean=5Fwatchlist=E6=B8=85?= =?UTF-8?q?=E7=90=86=E8=87=AA=E9=80=89=E6=B1=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/import_holding_xls.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/deploy/profile-scripts/import_holding_xls.py b/deploy/profile-scripts/import_holding_xls.py index 0da38c2e..def74b15 100644 --- a/deploy/profile-scripts/import_holding_xls.py +++ b/deploy/profile-scripts/import_holding_xls.py @@ -197,5 +197,12 @@ def main(): print(f"决策树: {ok}/{len(data.get('decisions',[]))}") -if __name__ == '__main__': - main() +if __name__ == "__main__": + # 持仓更新后自动清理自选池 + try: + from clean_watchlist import main as _clean_wl + _clean_wl() + print("\n[CLEAN_WL] 自选池清理完成") + except Exception as e: + print(f"\n[CLEAN_WL] 自选池清理失败: {e}") +