summaryrefslogtreecommitdiff
path: root/crawler/shops.go
diff options
context:
space:
mode:
Diffstat (limited to 'crawler/shops.go')
-rw-r--r--crawler/shops.go11
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