inventory

This commit is contained in:
mats committed 2026-08-02 23:15:31 +02:00
1 parent a7b886c4c5
commit 1ec449c2bd
1 file changed
+4 -1
+4 -1
View File
@@ -22,7 +22,10 @@ func BadgeHandler(reader StockReader) http.HandlerFunc {
locationID := LocationID(r.URL.Query().Get("location_id")) locationID := LocationID(r.URL.Query().Get("location_id"))
if locationID == "" { if locationID == "" {
locationID = "default" locationID = LocationID(r.URL.Query().Get("country"))
}
if locationID == "" {
locationID = "se"
} }
w.Header().Set("Content-Type", "text/html; charset=utf-8") w.Header().Set("Content-Type", "text/html; charset=utf-8")