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