diff options
Diffstat (limited to 'crawler/shop_whic.go')
| -rw-r--r-- | crawler/shop_whic.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawler/shop_whic.go b/crawler/shop_whic.go index 0e7cdf9..b5ff1af 100644 --- a/crawler/shop_whic.go +++ b/crawler/shop_whic.go @@ -24,6 +24,9 @@ func (app *App) ScrapeWhic(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") @@ -93,8 +96,6 @@ func (app *App) ScrapeWhic(shop Shop) []Angebot { return } - W.Shop = shop.Id - W.Spirit_type = "Whisky" W.Website = e.Request.Ctx.Get("website") Whiskys = append(Whiskys, W) |
