summaryrefslogtreecommitdiff
path: root/crawler/shop_mcwhisky.go
diff options
context:
space:
mode:
Diffstat (limited to 'crawler/shop_mcwhisky.go')
-rw-r--r--crawler/shop_mcwhisky.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawler/shop_mcwhisky.go b/crawler/shop_mcwhisky.go
index 87d822e..cea020a 100644
--- a/crawler/shop_mcwhisky.go
+++ b/crawler/shop_mcwhisky.go
@@ -40,7 +40,7 @@ func (app *App) ScrapeMCWhisky(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = e.ChildText(".price")
- WarnOffer(W, "MC Whisky: Converting original price failed")
+ PrintlnOffer(W, "MC Whisky: Converting original price failed")
return
}
})
@@ -49,7 +49,7 @@ func (app *App) ScrapeMCWhisky(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = e.ChildText(".price")
- WarnOffer(W, "MC Whisky: Converting discounted price failed")
+ PrintlnOffer(W, "MC Whisky: Converting discounted price failed")
return
}
})
@@ -60,7 +60,7 @@ func (app *App) ScrapeMCWhisky(shop Shop) []Angebot {
if err != nil {
W.error_msg = err.Error()
W.error_ctx = price_per_litre_noisy
- WarnOffer(W, "MC Whisky: Sanitizing base price failed")
+ PrintlnOffer(W, "MC Whisky: Sanitizing base price failed")
return
}
@@ -72,14 +72,14 @@ func (app *App) ScrapeMCWhisky(shop Shop) []Angebot {
if volume_failed != "" {
W.error_msg = "MC Whisky: Volume failed"
W.error_ctx = volume_failed
- WarnOffer(W, "MC Whisky: Volume failed")
+ PrintlnOffer(W, "MC Whisky: Volume failed")
return
}
abv_failed := e.Request.Ctx.Get("abv_failed")
if volume_failed != "" {
W.error_msg = "MC Whisky: Abv failed"
W.error_ctx = abv_failed
- WarnOffer(W, "MC Whisky: Abv failed")
+ PrintlnOffer(W, "MC Whisky: Abv failed")
return
}
@@ -88,14 +88,14 @@ func (app *App) ScrapeMCWhisky(shop Shop) []Angebot {
if W.Volume == 0 {
W.error_msg = "MC Whisky: Volume is zero"
W.error_ctx = ctx
- WarnOffer(W, "MC Whisky: Volume is zero")
+ PrintlnOffer(W, "MC Whisky: Volume is zero")
return
}
W.Abv, ctx = get_abv(e)
if W.Abv == 0 {
W.error_msg = "MC Whisky: Abv is zero"
W.error_ctx = ctx
- WarnOffer(W, "MC Whisky: Abv is zero")
+ PrintlnOffer(W, "MC Whisky: Abv is zero")
return
}