feat: expand screeners and stabilize interactive feedback

This commit is contained in:
leefer
2026-07-28 22:47:50 +08:00
parent f4b2d7152a
commit 1cc80583b3
22 changed files with 2707 additions and 509 deletions
+2
View File
@@ -23,6 +23,8 @@ class StrategyTrackingService:
def add_candidate(self, user_id: int, run_id: int, code: str) -> dict[str, Any]:
run = self.database.get_screener_run(user_id, run_id)
if not run:
run = self.database.get_screener_run(0, run_id)
if not run:
raise ValueError("选股结果不存在或不属于当前账号。")
normalized_code = str(code or "").strip().split(".")[0]