added ships to

This commit is contained in:
Hazel Noack
2025-07-10 13:49:16 +02:00
parent a4ec4966d2
commit da4e11f654
3 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
package diyhrt
import (
"fmt"
"slices"
)
@@ -10,6 +9,8 @@ type StoreFilter struct{
IncludeIds []int
ExcludeIds []int
ShipsTo []string
}
@@ -33,10 +34,8 @@ func (f StoreFilter) Filter (stores []Store) []Store {
continue
}
result = append(result, s)
}
fmt.Println(len(result))
return result
}

View File

@@ -2,6 +2,7 @@ package rendering
import (
"gitea.elara.ws/Hazel/transfem-startpage/internal/diyhrt"
"fmt"
)
type RenderingConfig struct {
@@ -52,6 +53,7 @@ func (rc *RenderingConfig) LoadDiyHrt(listings []diyhrt.Listing) {
continue
}
fmt.Println(listing.Store.ShipsToCountry)
stores = append(stores, listing.Store)
}