summaryrefslogtreecommitdiff
path: root/crawler/shop_bottleworld.go
diff options
context:
space:
mode:
authorMaximilian Möhring2020-09-17 14:34:14 +0200
committerMaximilian Möhring2020-09-17 14:34:14 +0200
commit76b9ce01f4d1fb18aa28961f010efde04942dc4a (patch)
treeca2a0474a17a91744c2fdcba1795dc3d07df82ec /crawler/shop_bottleworld.go
parent8e65241d1cc928e79e06adf66ce3e9c32c17fa49 (diff)
downloadalkobote-76b9ce01f4d1fb18aa28961f010efde04942dc4a.tar.gz
bugfix
Diffstat (limited to 'crawler/shop_bottleworld.go')
-rw-r--r--crawler/shop_bottleworld.go4
1 files changed, 4 insertions, 0 deletions
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)
})