fix: align research metadata with live WorldQuant responses
This commit is contained in:
@@ -619,12 +619,15 @@ class ResearchRuntime:
|
||||
):
|
||||
raise HTTPException(403, "候选不属于此研究运行的固定输入范围")
|
||||
if "backtest" not in run.authorization["methods"] or any(
|
||||
c["settings"]
|
||||
not in (
|
||||
run.authorization.get("allowed_settings", [run.authorization["settings"]])
|
||||
if experiment["evidence"].get("method") == "settings"
|
||||
else [run.authorization["settings"]]
|
||||
)
|
||||
SimulationSettings.model_validate(c["settings"]).model_dump(mode="json")
|
||||
not in [
|
||||
SimulationSettings.model_validate(value).model_dump(mode="json")
|
||||
for value in (
|
||||
run.authorization.get("allowed_settings", [run.authorization["settings"]])
|
||||
if experiment["evidence"].get("method") == "settings"
|
||||
else [run.authorization["settings"]]
|
||||
)
|
||||
]
|
||||
or not c.get("input_ids")
|
||||
or any(
|
||||
not any(
|
||||
|
||||
Reference in New Issue
Block a user