Don't extract all the router module

This commit is contained in:
2015-03-08 15:42:40 +07:00
parent b39941aa7c
commit 6ebab740b7
3 changed files with 21 additions and 149 deletions
+4
View File
@@ -61,11 +61,15 @@ func parseStatRequest(r *http.Request) *statRequest {
if from, err = strconv.ParseInt(r.FormValue("from"), 10, 64); err != nil {
panic(err)
}
} else {
from = 0
}
if r.FormValue("to") != "" {
if to, err = strconv.ParseInt(r.FormValue("to"), 10, 64); err != nil {
panic(err)
}
} else {
to = time.Now().Unix()
}
return &statRequest{
org: r.FormValue("org"),