chore: added config file and fixed updates not showing while training
This commit is contained in:
5
main.go
5
main.go
@@ -33,8 +33,11 @@ func main() {
|
||||
defer db.Close()
|
||||
log.Info("Starting server on :5002!")
|
||||
|
||||
config := LoadConfig()
|
||||
log.Info("Config loaded!", "config", config)
|
||||
|
||||
//TODO check if file structure exists to save data
|
||||
handle := NewHandler(db)
|
||||
handle := NewHandler(db, config)
|
||||
|
||||
// TODO remove this before commiting
|
||||
_, err = db.Exec("update models set status=$1 where status=$2", models_utils.FAILED_TRAINING, models_utils.TRAINING)
|
||||
|
||||
Reference in New Issue
Block a user