summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index e139fe3..53fc5c1 100644
--- a/main.go
+++ b/main.go
@@ -101,6 +101,10 @@ func handleHome(pathname string) func(http.ResponseWriter, *http.Request) {
if err == nil {
home.Stats = append(home.Stats, count("Last 30 days", len(last_month)))
}
+ last_year, err := EntriesSince(now.AddDate(0, 0, -365))
+ if err == nil {
+ home.Stats = append(home.Stats, count("Last 365 days", len(last_year)))
+ }
total, err := CountEntries()
if err == nil {
home.Stats = append(home.Stats, count("All time", int(total)))