diff options
| author | Maximilian Möhring | 2021-01-12 06:25:08 +0100 |
|---|---|---|
| committer | Maximilian Möhring | 2021-01-12 06:25:08 +0100 |
| commit | 2c038e851a23141f5cae470d3f07f4de5d04eed1 (patch) | |
| tree | 5ce59839f79fc7b0043c4b18c7fe5f7ae5a671f4 /crawler/shops.go | |
| parent | f3e644bf500ed327f122ae726ed2d16ca74d373d (diff) | |
| download | alkobote-2c038e851a23141f5cae470d3f07f4de5d04eed1.tar.gz | |
Add new shop Spirituosen-Wolf.
Diffstat (limited to 'crawler/shops.go')
| -rw-r--r-- | crawler/shops.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crawler/shops.go b/crawler/shops.go index 656cd1f..73def99 100644 --- a/crawler/shops.go +++ b/crawler/shops.go @@ -2,6 +2,8 @@ package main import ( "strings" + + log "github.com/sirupsen/logrus" ) func (app *App) insertShops() error { @@ -96,6 +98,14 @@ func getShopsFromStruct() []Shop { Shipping_costs: 595, Free_shipping: "250€", }) + Shops = append(Shops, Shop{ + Name: "Spirituosen-Wolf", + Url: "https://www.spirituosen-wolf.de", + Short_url: "https://l.fuselkoenig.de/spirituosenwolf", + Logo_url: "", + Shipping_costs: 595, + Free_shipping: "", + }) return Shops } @@ -116,6 +126,7 @@ func (app *App) getShops() ([]Shop, error) { if excludeShopIDs != "" { shop_query = " WHERE id NOT IN (" + excludeShopIDs + ")" } + log.Info("getShops: Exclude following shop ids: " + excludeShopIDs) } query := `SELECT id,name,short_url,url,logo_url,shipping_costs,free_shipping FROM shop ` + shop_query |
