specifically included otonoko pharmaceuticals
This commit is contained in:
@@ -17,20 +17,26 @@ type StoreFilter struct{
|
||||
func (f StoreFilter) Filter (stores []Store) []Store {
|
||||
result := make([]Store, 0)
|
||||
|
||||
if len(f.IncludeIds) > 0 {
|
||||
for _, s := range stores {
|
||||
if f.Limit > 0 && len(result) >= f.Limit {
|
||||
break
|
||||
}
|
||||
|
||||
if slices.Contains(f.IncludeIds, s.Id) {
|
||||
result = append(result, s)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for _, s := range stores {
|
||||
if f.Limit > 0 && len(result) >= f.Limit {
|
||||
break
|
||||
}
|
||||
|
||||
if len(f.IncludeIds) > 0 {
|
||||
if slices.Contains(f.IncludeIds, s.Id) {
|
||||
result = append(result, s)
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
if slices.Contains(f.ExcludeIds, s.Id) {
|
||||
if slices.Contains(f.ExcludeIds, s.Id) || slices.Contains(f.IncludeIds, s.Id) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user