pull #133: rename notification_text_cmd -> notification_text_fun
This commit is contained in:
parent
1e773f9763
commit
6aca9e1730
2 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ local function worker(args)
|
||||||
local date_cmd = args.date_cmd or "date -u -d @%d +'%%a %%d'"
|
local date_cmd = args.date_cmd or "date -u -d @%d +'%%a %%d'"
|
||||||
local icons_path = args.icons_path or lain_icons .. "openweathermap/"
|
local icons_path = args.icons_path or lain_icons .. "openweathermap/"
|
||||||
local notification_preset = args.notification_preset or {}
|
local notification_preset = args.notification_preset or {}
|
||||||
local notification_text_cmd = args.notification_text_cmd or
|
local notification_text_fun = args.notification_text_fun or
|
||||||
function (day, desc, tmin, tmax)
|
function (day, desc, tmin, tmax)
|
||||||
return string.format("<b>%s</b>: %s, %d - %d ", day, desc, tmin, tmax)
|
return string.format("<b>%s</b>: %s, %d - %d ", day, desc, tmin, tmax)
|
||||||
end
|
end
|
||||||
|
@ -98,7 +98,7 @@ local function worker(args)
|
||||||
local desc = weather_now["list"][i]["weather"][1]["description"]
|
local desc = weather_now["list"][i]["weather"][1]["description"]
|
||||||
|
|
||||||
weather.notification_text = weather.notification_text ..
|
weather.notification_text = weather.notification_text ..
|
||||||
notification_text_cmd(day, desc, tmin, tmax)
|
notification_text_fun(day, desc, tmin, tmax)
|
||||||
|
|
||||||
if i < weather_now["cnt"] then
|
if i < weather_now["cnt"] then
|
||||||
weather.notification_text = weather.notification_text .. "\n"
|
weather.notification_text = weather.notification_text .. "\n"
|
||||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
||||||
Subproject commit e21f7ddbdd05019501136a7cca1ac6c897eae2ce
|
Subproject commit a24a74924b80b7293d0f4171a855f1eb23ab90cc
|
Loading…
Add table
Reference in a new issue