diff options
| author | Max | 2018-02-05 23:48:16 +0100 |
|---|---|---|
| committer | Max | 2018-02-05 23:48:16 +0100 |
| commit | 13a807854bf4d0258723ec3152b217ed4cf8e051 (patch) | |
| tree | 14d7269d22ecf2d55055359af78b480a715bf82a /mcwhisky.go | |
| parent | 7ca22dc3e6a5fb1815de2c42b868458e1efb9ef9 (diff) | |
| download | alkobote-13a807854bf4d0258723ec3152b217ed4cf8e051.tar.gz | |
Adds referential integrity.
Diffstat (limited to 'mcwhisky.go')
| -rw-r--r-- | mcwhisky.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mcwhisky.go b/mcwhisky.go index b50b4e5..e45e740 100644 --- a/mcwhisky.go +++ b/mcwhisky.go @@ -8,7 +8,7 @@ import ( "github.com/gocolly/colly" ) -func ScrapeMCWhisky() []Angebot { +func ScrapeMCWhisky(shop Shop) []Angebot { Whiskys := []Angebot{} c := colly.NewCollector( @@ -42,7 +42,7 @@ func ScrapeMCWhisky() []Angebot { }) W.Image_url = e.ChildAttr("img", "src") - W.Shop = "MC Whisky" + W.Shop = shop.Id W.Spirit_type = "Whisky" Whiskys = append(Whiskys, W) |
