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_bottleworld.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawler/shop_bottleworld.go') diff --git a/crawler/shop_bottleworld.go b/crawler/shop_bottleworld.go index 0f1a301..2c6f734 100644 --- a/crawler/shop_bottleworld.go +++ b/crawler/shop_bottleworld.go @@ -84,6 +84,10 @@ func (app *App) ScrapeBottleWord(shop Shop) []Angebot { W.Spirit_type = e.Request.Ctx.Get("spirit_type") W.Website = e.Request.Ctx.Get("website") + if W.Original_price == 0 { + W.Println("Bottleworld: Original price is zero.") + return + } Whiskys = append(Whiskys, W) }) -- cgit v1.2.3