Update optuna_dashboard/app.py

Co-authored-by: Masashi Shibata <c-bata@users.noreply.github.com>
This commit is contained in:
Huzi ChengandMasashi Shibata authored and GitHub committed 2021-06-03 22:37:57 -04:00
1 parent 7b76558ebf
commit e9b49a846a
1 file changed
+1 -3
+1 -3
View File
@@ -214,9 +214,7 @@ def create_app(storage: BaseStorage) -> Bottle:
@app.get("/api/studies/<study_id:int>/param_importances")
@handle_json_api_exception
def get_param_importances(
study_id: int,
) -> BottleViewReturn:
def get_param_importances(study_id: int) -> BottleViewReturn:
# TODO(chenghuzi): add support for selecting params via query parameters.
response.content_type = "application/json"
objective_id = int(request.params.get("objective_id", 0))