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}") +