This commit is contained in:
shoopea 2020-08-08 12:31:26 +02:00
parent 197b348469
commit f977017eca

View File

@ -488,7 +488,7 @@ func getObjItemValDet(objID64 int64, quality string, days int) (float64, int64)
FROM obj_msg_auction_announce omaa FROM obj_msg_auction_announce omaa
WHERE omaa.item_id = ? WHERE omaa.item_id = ?
AND omaa.quality = ? AND omaa.quality = ?
AND omaa.end > CURRENT_TIMESTAMP - ? AND omaa.end > DATE_ADD(CURRENT_TIMESTAMP, INTERVAL - ? DAY)
AND omaa.status = 'Finished'`, objID64, quality, days) AND omaa.status = 'Finished'`, objID64, quality, days)
err = row.Scan(&val, &qty) err = row.Scan(&val, &qty)
if err != nil { if err != nil {