diff --git a/covid-widget.lua b/covid-widget.lua index 2f92799..a0d6528 100644 --- a/covid-widget.lua +++ b/covid-widget.lua @@ -4,6 +4,8 @@ -- author = "Evgeny Zobnin (zobnin@gmail.com)" -- version = "1.0" +equals = " = " + function onAlarm() net:getText("https://api.covid19api.com/summary") end @@ -15,8 +17,8 @@ function onNetworkResult(result) local totalDeaths = json:getValue(result, "object object:Global int:TotalDeaths") ui:showLines({ - "Disease: total = "..comma_value(total).." new = "..comma_value(new), - "Deaths: total = "..comma_value(totalDeaths).." new = "..comma_value(newDeaths) + "Disease: total"..equals..comma_value(total).." new"..equals..comma_value(new), + "Deaths: total"..equals..comma_value(totalDeaths).." new"..equals..comma_value(newDeaths) }) end