chore: update to go packages versions

This commit is contained in:
2024-01-31 21:48:35 +00:00
parent c00bd87cf7
commit d08a0a2a4c
8 changed files with 503 additions and 107 deletions

View File

@@ -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)
}