diff --git a/workers.go b/workers.go index 065508d..038f8b0 100644 --- a/workers.go +++ b/workers.go @@ -103,12 +103,13 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) { cwm := ChatWarsMessageAuctionAnnounce{ MsgID64: objId, } - cwm.LotID, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "${Lot}")) + cwm.LotID, _ = int32(strconv.ParseInt(r.ReplaceAllString(m.Text, "${Lot}"), 10, 32)) + cwm.Item = r.ReplaceAllString(m.Text, "${Item}") cwm.Cond = r.ReplaceAllString(m.Text, "${Cond}") cwm.Quality = r.ReplaceAllString(m.Text, "${Quality}") cwm.Seller = r.ReplaceAllString(m.Text, "${Seller}") cwm.Buyer = r.ReplaceAllString(m.Text, "${Buyer}") - cwm.Price, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "${Price}")) + cwm.Price, _ = int32(strconv.ParseInt(r.ReplaceAllString(m.Text, "${Price}"), 10, 32)) cwm.Status = r.ReplaceAllString(m.Text, "${Status}") t, _ := fromChatWarsDate(r.ReplaceAllString(m.Text, "${End}")) cwm.End = t.Unix()