summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/main.go b/main.go
index e3cd540..e139fe3 100644
--- a/main.go
+++ b/main.go
@@ -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)