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

Update GetMajorSnapshots API

This commit is contained in:
Zack Scholl 2017-03-23 07:22:14 -06:00
parent 80610690ea
commit 3a29cc5adf

View File

@ -97,7 +97,7 @@ func handlePageRequest(c *gin.Context) {
rawHTML = GithubMarkdownToHTML(rawText)
}
}
versionsInt64 := p.Text.GetMajorSnapshots()
versionsInt64 := p.Text.GetMajorSnapshots(60) // get snapshots 60 seconds apart
versionsText := make([]string, len(versionsInt64))
for i, v := range versionsInt64 {
versionsText[i] = time.Unix(v/1000000000, 0).String()