chore: update to go packages versions
This commit is contained in:
4
main.go
4
main.go
@@ -13,6 +13,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
clear_db = false
|
||||
host = "localhost"
|
||||
port = 5432
|
||||
user = "postgres"
|
||||
@@ -35,8 +36,9 @@ func main() {
|
||||
//TODO check if file structure exists to save data
|
||||
handle := NewHandler(db)
|
||||
|
||||
// TODO remove this before commiting
|
||||
_, err = db.Exec("update models set status=$1 where status=$2", models_utils.FAILED_TRAINING, models_utils.TRAINING)
|
||||
if err != nil {
|
||||
if err != nil && clear_db {
|
||||
log.Warn("Database might not be on")
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user