From 7d9556bf3379c90c5b60e6777af665586fda2985 Mon Sep 17 00:00:00 2001 From: Ben Boyter Date: Thu, 24 Oct 2024 11:25:07 +1100 Subject: [PATCH] Add lower to title --- cmd/badges/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/badges/main.go b/cmd/badges/main.go index 1f50792a..739af210 100644 --- a/cmd/badges/main.go +++ b/cmd/badges/main.go @@ -57,6 +57,10 @@ func main() { wage := tryParseInt(strings.TrimSpace(strings.ToLower(r.URL.Query().Get("avg-wage"))), 56286) title, value := calculate(category, wage, res) + if r.URL.Query().Get("lower") != "" { + title = strings.ToLower(title) + } + s := formatCount(float64(value)) textLength := "250"