Same layout for each dashboard + barchart animations

This commit is contained in:
2015-03-12 03:18:14 +07:00
parent f04db2401f
commit 790156f28d
4 changed files with 161 additions and 113 deletions
+2 -2
View File
@@ -148,7 +148,7 @@ order by commits desc`
const repoActivityQuery = `
select
c.week as weel,
c.week as week,
%s as item,
sum(c.commits) as commits,
sum(c.additions) - sum(c.deletions) as delta
@@ -211,6 +211,6 @@ func StatRepoTop(p map[string]interface{}) (res []StatItem) {
func StatRepoActivity(p map[string]interface{}) (res []StatPoint) {
defer measure("StatRepoActivity", time.Now())
mustSelectN(&res, fmt.Sprintf(repoTopQuery, p["item"]), p)
mustSelectN(&res, fmt.Sprintf(repoActivityQuery, p["item"]), p)
return
}