diff options
| author | Maximilian Möhring | 2020-09-17 14:34:14 +0200 |
|---|---|---|
| committer | Maximilian Möhring | 2020-09-17 14:34:14 +0200 |
| commit | 76b9ce01f4d1fb18aa28961f010efde04942dc4a (patch) | |
| tree | ca2a0474a17a91744c2fdcba1795dc3d07df82ec /crawler/shop_drankdozijn.go | |
| parent | 8e65241d1cc928e79e06adf66ce3e9c32c17fa49 (diff) | |
| download | alkobote-76b9ce01f4d1fb18aa28961f010efde04942dc4a.tar.gz | |
bugfix
Diffstat (limited to 'crawler/shop_drankdozijn.go')
| -rw-r--r-- | crawler/shop_drankdozijn.go | 8 |
1 files changed, 6 insertions, 2 deletions
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) } |
