From 7b4ecd417facab9c44be485f5014f8d4b15377c2 Mon Sep 17 00:00:00 2001 From: porink0424 Date: Fri, 10 May 2024 11:58:25 +0900 Subject: [PATCH] Apply formatter --- tslib/storage/src/journal.ts | 4 ++-- tslib/storage/src/sqlite.ts | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tslib/storage/src/journal.ts b/tslib/storage/src/journal.ts index e09536ef..2bd9540d 100644 --- a/tslib/storage/src/journal.ts +++ b/tslib/storage/src/journal.ts @@ -31,9 +31,9 @@ interface JournalOpDeleteStudy extends JournalOpBase { interface JournalOpSetStudySystemAttr extends JournalOpBase { study_id: number - system_attr: { + system_attr: { "study:metric_names": string[] - } + } } interface JournalOpCreateTrial extends JournalOpBase { diff --git a/tslib/storage/src/sqlite.ts b/tslib/storage/src/sqlite.ts index 543e7dba..3cd2cdc1 100644 --- a/tslib/storage/src/sqlite.ts +++ b/tslib/storage/src/sqlite.ts @@ -372,10 +372,7 @@ const parseDistributionJSON = (t: string): Optuna.Distribution => { } } -const getStudySystemAttributes = ( - db: SQLite3DB, - studyId: number -) => { +const getStudySystemAttributes = (db: SQLite3DB, studyId: number) => { let attrs: { metric_names: string[] } | undefined db.exec({ sql: `SELECT key, value_json FROM study_system_attributes WHERE study_id = ${studyId} AND key = 'dashboard:objective_names'`,