added ships to
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package diyhrt
|
package diyhrt
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"slices"
|
"slices"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -10,6 +9,8 @@ type StoreFilter struct{
|
|||||||
|
|
||||||
IncludeIds []int
|
IncludeIds []int
|
||||||
ExcludeIds []int
|
ExcludeIds []int
|
||||||
|
|
||||||
|
ShipsTo []string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -33,10 +34,8 @@ func (f StoreFilter) Filter (stores []Store) []Store {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
result = append(result, s)
|
result = append(result, s)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println(len(result))
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package rendering
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.elara.ws/Hazel/transfem-startpage/internal/diyhrt"
|
"gitea.elara.ws/Hazel/transfem-startpage/internal/diyhrt"
|
||||||
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RenderingConfig struct {
|
type RenderingConfig struct {
|
||||||
@@ -52,6 +53,7 @@ func (rc *RenderingConfig) LoadDiyHrt(listings []diyhrt.Listing) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println(listing.Store.ShipsToCountry)
|
||||||
stores = append(stores, listing.Store)
|
stores = append(stores, listing.Store)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1
|
exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1
|
||||||
Reference in New Issue
Block a user