From 80610690ea5b093be96a04f0cb028110d7985deb Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 23 Mar 2017 07:17:44 -0600 Subject: [PATCH] Get major versions instead of all --- handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers.go b/handlers.go index 5adffaa..19daa6f 100755 --- a/handlers.go +++ b/handlers.go @@ -97,7 +97,7 @@ func handlePageRequest(c *gin.Context) { rawHTML = GithubMarkdownToHTML(rawText) } } - versionsInt64 := p.Text.GetSnapshots() + versionsInt64 := p.Text.GetMajorSnapshots() versionsText := make([]string, len(versionsInt64)) for i, v := range versionsInt64 { versionsText[i] = time.Unix(v/1000000000, 0).String()