summaryrefslogtreecommitdiff
path: root/crawler/shop_mcwhisky.go
diff options
context:
space:
mode:
Diffstat (limited to 'crawler/shop_mcwhisky.go')
-rw-r--r--crawler/shop_mcwhisky.go6
1 files changed, 3 insertions, 3 deletions
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)