feat: expand screeners and stabilize interactive feedback
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user