Updated stat queries for new db schema

This commit is contained in:
2015-03-20 21:20:16 +07:00
parent 22fca9f4e1
commit f96c88a1fa
3 changed files with 146 additions and 153 deletions
+2 -2
View File
@@ -81,11 +81,11 @@ func parseStatRequest(r *http.Request) *statRequest {
var item string
switch val := r.FormValue("item"); val {
case "author", "user":
item = "c.author"
item = "u.login"
case "team":
item = "t.name"
default:
item = "c.repo"
item = "r.name"
}
return &statRequest{