Compare commits

...

1 Commits
v3.0.2 ... main

Author SHA1 Message Date
Luca 8bbec0cb64 Use internal category name
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2023-03-07 15:40:14 +01:00
1 changed files with 2 additions and 4 deletions

View File

@ -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) {