Skip to content
Snippets Groups Projects
Commit 9b7bc5ce authored by Maciej Pasternacki's avatar Maciej Pasternacki
Browse files

Add commit timestamp to app list to allow sorting by most recent

parent 1be02cd2
Branches
No related tags found
No related merge requests found
...@@ -536,6 +536,7 @@ type jsonApp struct { ...@@ -536,6 +536,7 @@ type jsonApp struct {
Author string `json:"author"` Author string `json:"author"`
Description string `json:"description"` Description string `json:"description"`
Version int `json:"version"` Version int `json:"version"`
Timestamp time.Time `json:"timestamp"`
Stars int `json:"stars"` Stars int `json:"stars"`
Flow3rSeed string `json:"flow3rSeed"` Flow3rSeed string `json:"flow3rSeed"`
} }
...@@ -551,6 +552,7 @@ func makeJsonApp(a *appDescriptor) jsonApp { ...@@ -551,6 +552,7 @@ func makeJsonApp(a *appDescriptor) jsonApp {
Author: a.appInfo.author, Author: a.appInfo.author,
Description: a.appInfo.description, Description: a.appInfo.description,
Version: a.appInfo.version, Version: a.appInfo.version,
Timestamp: a.appInfo.commitObj.Committer.When.UTC(),
Stars: a.appInfo.stars, Stars: a.appInfo.stars,
Flow3rSeed: a.appInfo.flow3rSeed, Flow3rSeed: a.appInfo.flow3rSeed,
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment