aboutsummaryrefslogtreecommitdiff
path: root/org.lua
diff options
context:
space:
mode:
Diffstat (limited to 'org.lua')
-rw-r--r--org.lua16
1 files changed, 6 insertions, 10 deletions
diff --git a/org.lua b/org.lua
index 3222167..6b034cc 100644
--- a/org.lua
+++ b/org.lua
@@ -40,16 +40,12 @@ local function worker(format, warg)
local b, e, y, m, d = string.find(line, "(%d%d%d%d)-(%d%d)-(%d%d)")
if b then
- local t = os.time{ year = y, month = m, day = d }
-
- if t < today then
- count.past = count.past + 1
- elseif t == today then
- count.today = count.today + 1
- elseif t <= soon then
- count.soon = count.soon + 1
- elseif t <= future then
- count.future = count.future + 1
+ local t = os.time{ year = y, month = m, day = d }
+
+ if t < today then count.past = count.past + 1
+ elseif t == today then count.today = count.today + 1
+ elseif t <= soon then count.soon = count.soon + 1
+ elseif t <= future then count.future = count.future + 1
end
end
end