diff --git a/item.go b/item.go index 0af4f1f..0f9f619 100644 --- a/item.go +++ b/item.go @@ -483,8 +483,8 @@ func getObjItemValDet(objID64 int64, quality string, days int) (float64, int64) if !item.Auction { return 0, 0 } - row := db.QueryRow(`SELECT avg(omaa.price) - ,count(*) + row := db.QueryRow(`SELECT COALESCE(avg(omaa.price), 0) + ,COALESCE(count(*), 0) FROM obj_msg_auction_announce omaa WHERE omaa.item_id = ? AND omaa.quality = ?