diff options
author | Aki <please@ignore.pl> | 2024-08-29 18:51:30 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2024-08-29 18:52:34 +0200 |
commit | 68a43471f81877bbeb9a152dc350a3dd170193bc (patch) | |
tree | 8674cc5b4fdccd0b48ed11c917e96248c87a4ec8 /main.go | |
parent | 47916bdd0a782fe61d37b47bde09f6edceedce5f (diff) | |
download | rudone-68a43471f81877bbeb9a152dc350a3dd170193bc.zip rudone-68a43471f81877bbeb9a152dc350a3dd170193bc.tar.gz rudone-68a43471f81877bbeb9a152dc350a3dd170193bc.tar.bz2 |
Removed "first visit" from summary
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -103,11 +103,7 @@ func handleHome(pathname string) func(http.ResponseWriter, *http.Request) { } total, err := CountEntries() if err == nil { - home.Stats = append(home.Stats, count("Total", int(total))) - } - first, err := FirstEntry() - if err == nil { - home.Stats = append(home.Stats, Stat{"First visit", first.StartedAt.Format("_2 January 2006, 15:04")}) + home.Stats = append(home.Stats, count("All time", int(total))) } if len(home.Stats) < 1 { http.Error(w, err.Error(), http.StatusInternalServerError) |