mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-10 12:23:22 +08:00
fix by review
This commit is contained in:
@@ -108,7 +108,9 @@ def serialize_study_summary(summary: StudySummary) -> dict[str, Any]:
|
||||
"study_name": summary.study_name,
|
||||
"directions": [d.name.lower() for d in summary.directions],
|
||||
"user_attrs": serialize_attrs(summary.user_attrs),
|
||||
"is_preferential": summary.system_attrs.get(_SYSTEM_ATTR_PREFERENTIAL_STUDY, False),
|
||||
"is_preferential": getattr(summary, "_system_attrs", {}).get(
|
||||
_SYSTEM_ATTR_PREFERENTIAL_STUDY, False
|
||||
),
|
||||
}
|
||||
|
||||
if summary.datetime_start is not None:
|
||||
|
||||
Reference in New Issue
Block a user