Skip to content

Commit

Permalink
fix currency to uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
uelei committed Nov 5, 2023
1 parent 1e4070c commit 316f6d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ brl-rate-get -get usd

____________________________________
|#######====================#######|
|# BRL eur #|
|# BRL EUR #|
|# ==== #|
|# Buy: 5.2474 #|
|# 1,00 Sell: 5.2500 #|
Expand Down
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ func handle_get(currency string) {

currentTime := time.Now()

rates := brlrateget.MakeRangeRequest(yesterday, currentTime, strings.ToUpper(currency), false)
currency = strings.ToUpper(currency)

rates := brlrateget.MakeRangeRequest(yesterday, currentTime, currency, false)

brlrateget.FormatGetResult(rates, currency)
}
Expand Down

0 comments on commit 316f6d9

Please sign in to comment.