From da4e11f654e18106f1fee2a6a06e92fbccfbf46e Mon Sep 17 00:00:00 2001 From: Hazel Noack Date: Thu, 10 Jul 2025 13:49:16 +0200 Subject: [PATCH] added ships to --- internal/diyhrt/filter.go | 5 ++--- internal/rendering/config.go | 2 ++ tmp/build-errors.log | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/internal/diyhrt/filter.go b/internal/diyhrt/filter.go index ac22c51..979fa60 100644 --- a/internal/diyhrt/filter.go +++ b/internal/diyhrt/filter.go @@ -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 } diff --git a/internal/rendering/config.go b/internal/rendering/config.go index 35cc0b8..732035d 100644 --- a/internal/rendering/config.go +++ b/internal/rendering/config.go @@ -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) } diff --git a/tmp/build-errors.log b/tmp/build-errors.log index 9ba0172..9bb8b56 100644 --- a/tmp/build-errors.log +++ b/tmp/build-errors.log @@ -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 \ No newline at end of file +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 \ No newline at end of file