func init() { app.ScanData("codereview.loadmsg", 1*time.Minute, datastore.NewQuery("CL").Filter("MessagesLoaded =", false), loadmsg) app.ScanData("codereview.loadpatch", 1*time.Minute, datastore.NewQuery("CL").Filter("PatchSetsLoaded =", false), loadpatch) app.ScanData("codereview.mail", 15*time.Minute, datastore.NewQuery("CL").Filter("Active =", true).Filter("NeedMailIssue >", ""), mailissue) }
func init() { http.Handle("/admin/testclose/", appstats.NewHandler(testIssue)) http.Handle("/admin/testmove", appstats.NewHandler(doMoves)) return app.ScanData("issue.github1", 15*time.Minute, datastore.NewQuery("Issue").Filter("NeedGithubNote =", true), postMovedNote) }