diff options
author | Aki <please@ignore.pl> | 2024-08-29 18:55:47 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2024-08-29 18:55:47 +0200 |
commit | 5639c172509cbdc9a55db6fbdad952ac1b880f70 (patch) | |
tree | ffdc124a35303869a345ecdd2e073b6d027b701e | |
parent | 68a43471f81877bbeb9a152dc350a3dd170193bc (diff) | |
download | rudone-5639c172509cbdc9a55db6fbdad952ac1b880f70.zip rudone-5639c172509cbdc9a55db6fbdad952ac1b880f70.tar.gz rudone-5639c172509cbdc9a55db6fbdad952ac1b880f70.tar.bz2 |
-rw-r--r-- | main.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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))) |