http.HandleFunc("/favicon.ico", http.NotFound)
}
+// maximum number of active CLs to show in person-specific tables.
+const maxCLs = 100
+
func handleFront(w http.ResponseWriter, r *http.Request) {
c := appengine.NewContext(r)
if data.UserIsReviewer {
tableFetch(0, func(tbl *clTable) error {
- q := activeCLs.Filter("Reviewer =", currentPerson).Limit(50)
+ q := activeCLs.Filter("Reviewer =", currentPerson).Limit(maxCLs)
tbl.Title = "CLs assigned to you for review"
tbl.Assignable = true
_, err := q.GetAll(c, &tbl.CLs)
}
tableFetch(1, func(tbl *clTable) error {
- q := activeCLs.Filter("Author =", currentPerson).Limit(50)
+ q := activeCLs.Filter("Author =", currentPerson).Limit(maxCLs)
tbl.Title = "CLs sent by you"
tbl.Assignable = true
_, err := q.GetAll(c, &tbl.CLs)