mirror of
https://github.com/LeRoid-hub/humiditycalc.git
synced 2025-01-31 03:34:56 +00:00
values can be entered with an ,
This commit is contained in:
parent
2458d5b982
commit
c5f0dd8419
@ -42,6 +42,9 @@ func Run(env map[string]string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tempCelsius = strings.Replace(tempCelsius, ",", ".", 1)
|
||||||
|
relativeHumidity = strings.Replace(relativeHumidity, ",", ".", 1)
|
||||||
|
|
||||||
// Convert query parameters to float64
|
// Convert query parameters to float64
|
||||||
temp, err := strconv.ParseFloat(tempCelsius, 32)
|
temp, err := strconv.ParseFloat(tempCelsius, 32)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user