From 68a43471f81877bbeb9a152dc350a3dd170193bc Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 29 Aug 2024 18:51:30 +0200 Subject: Removed "first visit" from summary --- main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'main.go') 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) -- cgit v1.1