aboutsummaryrefslogtreecommitdiff
path: root/org.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-14 17:25:23 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-14 17:25:23 +0200
commit2a5126f4f0c0a3e073becb98f49499363072643d (patch)
treecd9e79c76420d01c94544ce039a6a73eb667e4e5 /org.lua
parent4f3599db00b3a55a0ff6e52530bdad282e97f8f3 (diff)
downloadvicious-legacy-2a5126f4f0c0a3e073becb98f49499363072643d.tar.xz
General cleanup
Diffstat (limited to 'org.lua')
-rw-r--r--org.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/org.lua b/org.lua
index d0a2315..f8f96bc 100644
--- a/org.lua
+++ b/org.lua
@@ -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 }