Fix für weather.lua
(*** lua: plugins/weather.lua:23: invalid use of '%' in replacement string)
This commit is contained in:
parent
447cb44166
commit
68305dc953
@ -20,7 +20,7 @@ local function get_weather(location)
|
|||||||
else
|
else
|
||||||
country = ' ('..weather.sys.country..')'
|
country = ' ('..weather.sys.country..')'
|
||||||
end
|
end
|
||||||
local temperature = string.gsub(round(weather.main.temp, 1), "%.", "%,")
|
local temperature = round(weather.main.temp, 1)
|
||||||
local temp = 'Wetter in '..city..country..':\n'..temperature..'°C'
|
local temp = 'Wetter in '..city..country..':\n'..temperature..'°C'
|
||||||
local conditions = ' | '..weather.weather[1].description
|
local conditions = ' | '..weather.weather[1].description
|
||||||
if weather.weather[1].main == 'Clear' then
|
if weather.weather[1].main == 'Clear' then
|
||||||
|
Reference in New Issue
Block a user