chore: did more clean up
This commit is contained in:
4
main.go
4
main.go
@@ -7,8 +7,8 @@ import (
|
||||
"github.com/charmbracelet/log"
|
||||
_ "github.com/lib/pq"
|
||||
|
||||
. "git.andr3h3nriqu3s.com/andr3/fyp/logic/db_types"
|
||||
. "git.andr3h3nriqu3s.com/andr3/fyp/logic/models"
|
||||
models_utils "git.andr3h3nriqu3s.com/andr3/fyp/logic/models/utils"
|
||||
. "git.andr3h3nriqu3s.com/andr3/fyp/logic/tasks"
|
||||
. "git.andr3h3nriqu3s.com/andr3/fyp/logic/tasks/runner"
|
||||
. "git.andr3h3nriqu3s.com/andr3/fyp/logic/utils"
|
||||
@@ -44,7 +44,7 @@ func main() {
|
||||
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)
|
||||
_, err = db.Exec("update models set status=$1 where status=$2", FAILED_TRAINING, TRAINING)
|
||||
if err != nil && clear_db {
|
||||
log.Warn("Database might not be on")
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user