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

Former-commit-id: 5cdd8a3b23c05604fa82d5ba3319ec8caf402313 [formerly d0acfb7a8b73c1549cb8a3814583dbacd0833b27] [formerly 60213b204673cd65c02b6945df1883ca0f348aa7 [formerly 80610690ea]]
Former-commit-id: f783c78d0353eec3003fbe3fab6854a4ef5e761a [formerly 69e182e4f7a83e76eaa52d3a494760e715fe4abc]
Former-commit-id: d1c6e0fcf474c14ab15a5148fdd4531462ce6702
This commit is contained in:
Zack Scholl 2017-03-23 07:17:44 -06:00
parent 7b0bfea196
commit 3886f3d00e

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