Skip to content
Snippets Groups Projects
Commit 5ce5c6fa authored by Timon's avatar Timon
Browse files

Merge branch 'psentee/app-timestamp' into 'main'

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

See merge request flow3r/api!3
parents 54f01ffe 9b7bc5ce
No related branches found
No related tags found
No related merge requests found
......@@ -536,6 +536,7 @@ type jsonApp struct {
Author string `json:"author"`
Description string `json:"description"`
Version int `json:"version"`
Timestamp time.Time `json:"timestamp"`
Stars int `json:"stars"`
Flow3rSeed string `json:"flow3rSeed"`
}
......@@ -551,6 +552,7 @@ func makeJsonApp(a *appDescriptor) jsonApp {
Author: a.appInfo.author,
Description: a.appInfo.description,
Version: a.appInfo.version,
Timestamp: a.appInfo.commitObj.Committer.When.UTC(),
Stars: a.appInfo.stars,
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