summaryrefslogtreecommitdiff
path: root/whic.go
diff options
context:
space:
mode:
Diffstat (limited to 'whic.go')
-rw-r--r--whic.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/whic.go b/whic.go
index fced386..896b1fb 100644
--- a/whic.go
+++ b/whic.go
@@ -8,7 +8,7 @@ import (
"github.com/gocolly/colly"
)
-func ScrapeWhic() []Angebot {
+func ScrapeWhic(shop Shop) []Angebot {
Whiskys := []Angebot{}
c := colly.NewCollector(
@@ -52,7 +52,7 @@ func ScrapeWhic() []Angebot {
}
W.Image_url, _ = doc.Find("img").Attr("src")
- W.Shop = "Whic"
+ W.Shop = shop.Id
W.Spirit_type = "Whisky"
Whiskys = append(Whiskys, W)