diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-24 15:34:56 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-24 15:34:56 +0200 |
commit | a54350782e9bbd81aad3ef58a11826e3cd13134c (patch) | |
tree | c2281044157b39ab3c7f780d500d084e7d3d3d55 /org.lua | |
parent | 080d1e82f535e5a8e6fb3fbb4e1df97f7a21bf42 (diff) | |
download | vicious-legacy-a54350782e9bbd81aad3ef58a11826e3cd13134c.tar.xz |
General cleanup to match with HEAD
Diffstat (limited to 'org.lua')
-rw-r--r-- | org.lua | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -26,7 +26,7 @@ local function worker(format, files) local soon = today + 24 * 3600 * 3 -- 3 days ahead is close local future = today + 24 * 3600 * 7 -- 7 days ahead is maximum - -- Initialise count table + -- Initialise counters local count = { past = 0, today = 0, @@ -38,7 +38,6 @@ local function worker(format, files) for i=1, #files do local f = io.open(files[i]) - -- Parse the agenda for line in f:lines() do local scheduled = string.find(line, "SCHEDULED:") local closed = string.find(line, "CLOSED:") @@ -47,7 +46,6 @@ local function worker(format, files) if (scheduled and not closed) or (deadline and not closed) then local b, e, y, m, d = string.find(line, "(%d%d%d%d)-(%d%d)-(%d%d)") - -- Enumerate agenda items if b then local t = os.time{ year = y, month = m, day = d } |