1
0
mirror of https://github.com/golang/go synced 2024-09-24 09:30:13 -06:00

dashboard: sort user interface by internal counter, not date

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6114053
This commit is contained in:
Andrew Gerrand 2012-04-25 13:01:08 -07:00
parent 61a8eb07f8
commit b6522c43d5

View File

@ -97,7 +97,7 @@ type Pagination struct {
func goCommits(c appengine.Context, page int) ([]*Commit, error) { func goCommits(c appengine.Context, page int) ([]*Commit, error) {
q := datastore.NewQuery("Commit"). q := datastore.NewQuery("Commit").
Ancestor((&Package{}).Key(c)). Ancestor((&Package{}).Key(c)).
Order("-Time"). Order("-Num").
Limit(commitsPerPage). Limit(commitsPerPage).
Offset(page * commitsPerPage) Offset(page * commitsPerPage)
var commits []*Commit var commits []*Commit