mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-23 13:30:25 +08:00
Fix black errors
This commit is contained in:
@@ -409,7 +409,6 @@ def create_app(
|
||||
@app.post("/api/trials/<trial_id:int>/tell")
|
||||
@json_api_view
|
||||
def tell_trial(trial_id: int) -> dict[str, Any]:
|
||||
|
||||
if "state" not in request.json:
|
||||
response.status = 400 # Bad request
|
||||
return {"reason": "state must be specified."}
|
||||
|
||||
Reference in New Issue
Block a user