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:
parent
c8e237c3c5
commit
80610690ea
@ -97,7 +97,7 @@ func handlePageRequest(c *gin.Context) {
|
|||||||
rawHTML = GithubMarkdownToHTML(rawText)
|
rawHTML = GithubMarkdownToHTML(rawText)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
versionsInt64 := p.Text.GetSnapshots()
|
versionsInt64 := p.Text.GetMajorSnapshots()
|
||||||
versionsText := make([]string, len(versionsInt64))
|
versionsText := make([]string, len(versionsInt64))
|
||||||
for i, v := range versionsInt64 {
|
for i, v := range versionsInt64 {
|
||||||
versionsText[i] = time.Unix(v/1000000000, 0).String()
|
versionsText[i] = time.Unix(v/1000000000, 0).String()
|
||||||
|
Loading…
Reference in New Issue
Block a user