Skip to content

Commit

Permalink
Add lower to title
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Oct 24, 2024
1 parent a5418d8 commit 7d9556b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/badges/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7d9556b

Please sign in to comment.