From 2a5126f4f0c0a3e073becb98f49499363072643d Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Mon, 14 Sep 2009 17:25:23 +0200 Subject: General cleanup --- org.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'org.lua') 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 } -- cgit v1.2.3