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_mcwhisky.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawler/shop_mcwhisky.go') diff --git a/crawler/shop_mcwhisky.go b/crawler/shop_mcwhisky.go index 2a188c3..87d822e 100644 --- a/crawler/shop_mcwhisky.go +++ b/crawler/shop_mcwhisky.go @@ -24,6 +24,9 @@ func (app *App) ScrapeMCWhisky(shop Shop) []Angebot { W := Angebot{} + W.Shop = shop.Id + W.Spirit_type = "Whisky" + whisky_name := e.ChildAttr("a", "title") whisky_url := e.ChildAttr("a", "href") W.Name = whisky_name @@ -96,9 +99,6 @@ func (app *App) ScrapeMCWhisky(shop Shop) []Angebot { return } - W.Shop = shop.Id - W.Spirit_type = "Whisky" - W.Website = e.Request.Ctx.Get("website") Whiskys = append(Whiskys, W) -- cgit v1.2.3