From afa023875855d1eeea1f3776d64d0bf042f4a551 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Sat, 11 Oct 2025 23:48:09 -0400 Subject: [PATCH] Restrict `Price` assignment to unit price with "lb" only --- sites/wegmans/wegmans.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/wegmans/wegmans.go b/sites/wegmans/wegmans.go index f49db26..0c9180f 100644 --- a/sites/wegmans/wegmans.go +++ b/sites/wegmans/wegmans.go @@ -117,7 +117,7 @@ func (c Config) GetItemPrice(ctx context.Context, b extractor.Browser, u *url.UR if len(units) > 1 { res.Unit = strings.TrimSpace(units[1]) res.UnitPrice, _ = strconv.ParseFloat(units[0], 64) - if res.UnitPrice != 0 { + if res.UnitPrice != 0 && res.Unit == "lb" { res.Price = res.UnitPrice } }