summaryrefslogtreecommitdiff
path: root/activity
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-02-08 01:48:43 +0100
committerAki <please@ignore.pl>2024-02-08 01:48:43 +0100
commit89b7fc43530535ea0fb2114e5fa0cf5660ca37a0 (patch)
tree547bfb206159eea7b380e8fdc1db357c94b1bf57 /activity
parent85f53fed3026366c3970e26e2843be3d8e702c20 (diff)
downloadactivity-89b7fc43530535ea0fb2114e5fa0cf5660ca37a0.zip
activity-89b7fc43530535ea0fb2114e5fa0cf5660ca37a0.tar.gz
activity-89b7fc43530535ea0fb2114e5fa0cf5660ca37a0.tar.bz2
Fixed last two weeks of each year not showing up
Diffstat (limited to 'activity')
-rw-r--r--activity/git.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/activity/git.lua b/activity/git.lua
index c1219ad..978dfec 100644
--- a/activity/git.lua
+++ b/activity/git.lua
@@ -33,7 +33,9 @@ function git.lookup (repositories)
lookup[year] = lookup[year] or {}
lookup[year][day] = (lookup[year][day] or 0) + 1
end
- return lookup
+ return function (year, day)
+ return (lookup[year] or {})[day] or 0
+ end
end