fix: Correct syntax error in study metadata saving
This commit is contained in:
@@ -178,7 +178,7 @@ class OptimizationRunner:
|
|||||||
# Update metadata
|
# Update metadata
|
||||||
if self.study:
|
if self.study:
|
||||||
metadata['total_trials'] = len(self.study.trials)
|
metadata['total_trials'] = len(self.study.trials)
|
||||||
metadata['last_updated': datetime.now().isoformat()
|
metadata['last_updated'] = datetime.now().isoformat()
|
||||||
if not is_new and 'created_at' in metadata:
|
if not is_new and 'created_at' in metadata:
|
||||||
metadata['resume_count'] = metadata.get('resume_count', 0) + 1
|
metadata['resume_count'] = metadata.get('resume_count', 0) + 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user