aboutsummaryrefslogtreecommitdiff
path: root/org.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-11-03 01:38:43 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-11-03 01:38:43 +0100
commit94cf0b7d7fe10b695876fbf84562c06a340f609a (patch)
treed82fe754ffb5fba69bcbc10017b2f26b01108284 /org.lua
parent44d943d024ba59dee20e62aab2149a97f8827947 (diff)
downloadvicious-legacy-94cf0b7d7fe10b695876fbf84562c06a340f609a.tar.xz
Minor changes in mboxc and org
Diffstat (limited to 'org.lua')
-rw-r--r--org.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.lua b/org.lua
index ea50db9..c80cd15 100644
--- a/org.lua
+++ b/org.lua
@@ -20,7 +20,7 @@ module("vicious.org")
-- {{{ OrgMode widget type
-local function worker(format, files)
+local function worker(format, warg)
-- Compute delays
local today = os.time{ year=os.date("%Y"), month=os.date("%m"), day=os.date("%d") }
local soon = today + 24 * 3600 * 3 -- 3 days ahead is close
@@ -30,8 +30,8 @@ local function worker(format, files)
local count = { past = 0, today = 0, soon = 0, future = 0 }
-- Get data from agenda files
- for i=1, #files do
- local f = io.open(files[i])
+ for i=1, #warg do
+ local f = io.open(warg[i])
for line in f:lines() do
local scheduled = string.find(line, "SCHEDULED:")