summaryrefslogtreecommitdiff
path: root/crawler/sanitize.go
diff options
context:
space:
mode:
authorhorus_arch2018-02-17 12:06:05 +0100
committerhorus_arch2018-02-17 12:06:05 +0100
commit9ebf51364773dae6db4c0c47d77710c9f1a37b51 (patch)
treef01ba3b503920ef3301cdae0ceeb402e294d0d83 /crawler/sanitize.go
parent13724d7e56299213e9b10eef6f315569127b53f2 (diff)
downloadalkobote-9ebf51364773dae6db4c0c47d77710c9f1a37b51.tar.gz
Minor refactoring. (crawler)
Diffstat (limited to 'crawler/sanitize.go')
-rw-r--r--crawler/sanitize.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawler/sanitize.go b/crawler/sanitize.go
index 4f76c69..3d61c46 100644
--- a/crawler/sanitize.go
+++ b/crawler/sanitize.go
@@ -15,31 +15,31 @@ func sanitize_offer(angebote []Angebot, shop Shop) []Angebot {
offer.Name = sanitize_name(offer.Name)
if offer.Abv == 0 {
- DebugOffer(offer, "Sanitizer: Abv is zero")
+ WarnOffer(offer, "Sanitizer: Abv is zero")
continue
}
if offer.Volume == 0 {
- DebugOffer(offer, "Sanitizer: Volume is zero")
+ WarnOffer(offer, "Sanitizer: Volume is zero")
continue
}
if offer.Discounted_price == 0 {
- DebugOffer(offer, "Sanitizer: Discounted price is zero")
+ WarnOffer(offer, "Sanitizer: Discounted price is zero")
continue
}
if offer.Original_price == 0 {
- DebugOffer(offer, "Sanitizer: Original price is zero")
+ WarnOffer(offer, "Sanitizer: Original price is zero")
continue
}
if offer.Base_price == 0 {
- DebugOffer(offer, "Sanitizer: Base price is zero")
+ WarnOffer(offer, "Sanitizer: Base price is zero")
continue
}
if offer.Url == "" {
- DebugOffer(offer, "Sanitizer: URL is empty")
+ WarnOffer(offer, "Sanitizer: URL is empty")
continue
}
if offer.Image_url == "" {
- DebugOffer(offer, "Sanitizer: Image-URL is empty")
+ WarnOffer(offer, "Sanitizer: Image-URL is empty")
continue
}