From 47ee2f721f552d0b65159516f7420d14a7880bbd Mon Sep 17 00:00:00 2001 From: horus Date: Sat, 17 Feb 2018 19:07:08 +0100 Subject: Minor improvement in logging. (crawler) --- crawler/shop_rumundco.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawler/shop_rumundco.go') diff --git a/crawler/shop_rumundco.go b/crawler/shop_rumundco.go index 58de518..30c8765 100644 --- a/crawler/shop_rumundco.go +++ b/crawler/shop_rumundco.go @@ -27,6 +27,9 @@ func (app *App) ScrapeRumundCo(shop Shop) []Angebot { W := Angebot{} + W.Shop = shop.Id + W.Spirit_type = "Whisky" + whisky_name := strings.TrimPrefix(e.ChildAttr("img", "alt"), "Restposten: ") whisky_url := "https://www.rumundco.de/" + e.ChildAttr("a", "href") @@ -136,9 +139,6 @@ func (app *App) ScrapeRumundCo(shop Shop) []Angebot { WarnOffer(W, "Rum & Co: Abv is zero") return } - - W.Shop = shop.Id - W.Spirit_type = "Whisky" W.Website = e.Request.Ctx.Get("website") Whiskys = append(Whiskys, W) -- cgit v1.2.3