From 76b9ce01f4d1fb18aa28961f010efde04942dc4a Mon Sep 17 00:00:00 2001 From: Maximilian Möhring Date: Thu, 17 Sep 2020 14:34:14 +0200 Subject: bugfix --- crawler/shop_drankdozijn.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'crawler/shop_drankdozijn.go') diff --git a/crawler/shop_drankdozijn.go b/crawler/shop_drankdozijn.go index 7a9e786..d6b2f62 100644 --- a/crawler/shop_drankdozijn.go +++ b/crawler/shop_drankdozijn.go @@ -118,7 +118,6 @@ func (app *App) ScrapeDrankdozijn(shop Shop) []Angebot { // TODO panic(err) } - log.Println(W.Original_price) W.Discounted_price, err = convert_price(fmt.Sprintf("%.2f", api_data.SalePrice)) if err != nil { @@ -266,7 +265,12 @@ func (app *App) ScrapeDrankdozijn(shop Shop) []Angebot { } } } - W.Debug("DEBUG OFFER") + + //W.Debug("DEBUG OFFER") + if W.Abv == 0 { + W.Println("Drankdozijn: Abv is zero") + continue + } Offers = append(Offers, W) } -- cgit v1.2.3