diff options
Diffstat (limited to 'crawler/shops.go')
| -rw-r--r-- | crawler/shops.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawler/shops.go b/crawler/shops.go index 79eff96..224ae96 100644 --- a/crawler/shops.go +++ b/crawler/shops.go @@ -113,6 +113,11 @@ func (app *App) getShops() ([]Shop, error) { shop_query = " WHERE id IN (" + shopIDs + ")" } + } else if len(app.Config.ExcludeShopIDs) > 0 { + excludeShopIDs := strings.Join(app.Config.ExcludeShopIDs, `, `) + if excludeShopIDs != "" { + shop_query = " WHERE id NOT IN (" + excludeShopIDs + ")" + } } query := `SELECT id,name,short_url,url,logo_url,shipping_costs,free_shipping FROM shop ` + shop_query |
