From 8bbec0cb6487067be8b0eb95061ff8c6ab7a8c07 Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 7 Mar 2023 15:40:14 +0100 Subject: [PATCH] Use internal category name --- internal/pretix/order_placed.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/pretix/order_placed.go b/internal/pretix/order_placed.go index 69cd003..b4fd709 100644 --- a/internal/pretix/order_placed.go +++ b/internal/pretix/order_placed.go @@ -222,9 +222,7 @@ func (s Server) fetchCategory(organizer, event string, item uint) string { decoder = json.NewDecoder(resp.Body) itemCategory := struct{ - Name struct{ - German string `json:"de-informal"` - } + InternalName string `json:"internal_name"` }{} err = decoder.Decode(&itemCategory) @@ -232,7 +230,7 @@ func (s Server) fetchCategory(organizer, event string, item uint) string { return "" } - return itemCategory.Name.German + return itemCategory.InternalName } func parsePrice(price string) (euros uint64, cents uint64, err error) {