Merge pull request #312 from Alnusjaponica/fix_typo

Fix typo
This commit is contained in:
Masashi Shibata
2022-12-15 14:19:18 +09:00
committed by GitHub
+3 -3
View File
@@ -254,7 +254,7 @@ def create_app(storage: BaseStorage, debug: bool = False) -> Bottle:
study_id = storage.create_new_study(study_name)
except DuplicatedStudyError:
response.status = 400 # Bad request
return {"reason": f"'{study_name}' is already exists"}
return {"reason": f"'{study_name}' already exists"}
storage.set_study_directions(
study_id,
@@ -304,7 +304,7 @@ def create_app(storage: BaseStorage, debug: bool = False) -> Bottle:
intersection,
union,
union_user_attrs,
has_intermeridate_values,
has_intermediate_values,
) = get_cached_extra_study_property(study_id, trials)
return serialize_study_detail(
summary,
@@ -312,7 +312,7 @@ def create_app(storage: BaseStorage, debug: bool = False) -> Bottle:
intersection,
union,
union_user_attrs,
has_intermeridate_values,
has_intermediate_values,
)
@app.get("/api/studies/<study_id:int>/param_importances")