updated messages in InsertFrsEntryToDB()

This commit is contained in:
Paul 2020-02-29 19:36:21 +01:00
parent 6122fa4de3
commit 13777f4e84

View File

@ -87,7 +87,7 @@ func InsertFrsEntryToDB(config config.Config, db sqlx.DB, frsPeople map[string]F
tx := db.MustBegin() tx := db.MustBegin()
var qrzNum int var qrzNum int
fmt.Println(fmt.Sprintf("Starting insert of %d entries", len(frsPeople))) fmt.Println(fmt.Sprintf("Starting inserts of %d entries", len(frsPeople)))
for _, j := range frsPeople { for _, j := range frsPeople {
query := fmt.Sprintf(config.DbInsertStatement, config.DbTable, j.QRZ, j.Name, j.City, j.Dept, j.Country) query := fmt.Sprintf(config.DbInsertStatement, config.DbTable, j.QRZ, j.Name, j.City, j.Dept, j.Country)
@ -99,7 +99,7 @@ func InsertFrsEntryToDB(config config.Config, db sqlx.DB, frsPeople map[string]F
if err != nil { if err != nil {
return err return err
} }
fmt.Println(fmt.Sprintf("Committed %d entries", qrzNum)) fmt.Println(fmt.Sprintf("Committed %d qrz entries", qrzNum))
return nil return nil
} }