1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Get major versions instead of all

This commit is contained in:
Zack Scholl 2017-03-23 07:17:44 -06:00
parent c8e237c3c5
commit 80610690ea

View File

@ -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()