From 5320509893bc040781b63bb49442b9a9ce3cd1f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=A5=E5=BE=AE?= Date: Tue, 7 Jul 2026 11:20:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20stale=5Fdetector=20per=5Fstock=5Freasses?= =?UTF-8?q?s=E5=8F=82=E6=95=B0=E4=BF=AE=E6=AD=A3(--code=E2=86=92=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E5=8F=82=E6=95=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/stale_detector.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/stale_detector.py b/scripts/stale_detector.py index 514a3b83..5d442488 100644 --- a/scripts/stale_detector.py +++ b/scripts/stale_detector.py @@ -142,12 +142,11 @@ def main(): break if reassess_path: for code in reassess_scripts: - r = subprocess.run(['python3', reassess_path, '--code', code], + r = subprocess.run(['python3', reassess_path, code], capture_output=True, text=True, timeout=60) out = r.stdout.strip()[:200] if r.stdout else "" err = r.stderr.strip()[:200] if r.stderr else "" - print(f" → {code}: exited={r.returncode} {out} {('err='+err) if err else ''}") - print(f" → {code}: 重评完成") + print(f" → {code}: exited={r.returncode} {out}") except Exception as e: print(f"[AUTO_REASSESS FAIL] {e}") # ----- 结束 自选股重评 -----