Use internal category name
This commit is contained in:
parent
1ff0f6e073
commit
8bbec0cb64
|
@ -222,9 +222,7 @@ func (s Server) fetchCategory(organizer, event string, item uint) string {
|
||||||
|
|
||||||
decoder = json.NewDecoder(resp.Body)
|
decoder = json.NewDecoder(resp.Body)
|
||||||
itemCategory := struct{
|
itemCategory := struct{
|
||||||
Name struct{
|
InternalName string `json:"internal_name"`
|
||||||
German string `json:"de-informal"`
|
|
||||||
}
|
|
||||||
}{}
|
}{}
|
||||||
|
|
||||||
err = decoder.Decode(&itemCategory)
|
err = decoder.Decode(&itemCategory)
|
||||||
|
@ -232,7 +230,7 @@ func (s Server) fetchCategory(organizer, event string, item uint) string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
return itemCategory.Name.German
|
return itemCategory.InternalName
|
||||||
}
|
}
|
||||||
|
|
||||||
func parsePrice(price string) (euros uint64, cents uint64, err error) {
|
func parsePrice(price string) (euros uint64, cents uint64, err error) {
|
||||||
|
|
Loading…
Reference in New Issue