Browse Source

项目详情页显示每天的增量

pull/898/head
ychao_1983 3 years ago
parent
commit
006cd65b62
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/api/v1/repo/repo_dashbord.go

+ 1
- 1
routers/api/v1/repo/repo_dashbord.go View File

@@ -362,7 +362,7 @@ func generateRadarSql(beginTime time.Time, endTime time.Time, repoId int64) stri
}

func generateTargetSql(beginTime time.Time, endTime time.Time, repoId int64) string {
sql := "SELECT date, num_visits,num_downloads,num_commits FROM repo_statistic" +
sql := "SELECT date, num_visits,num_downloads_added as num_downloads,num_commits_added as num_commits FROM repo_statistic" +
" where repo_id=" + strconv.FormatInt(repoId, 10) + " and created_unix >=" + strconv.FormatInt(beginTime.Unix(), 10) +
" and created_unix<" + strconv.FormatInt(endTime.Unix(), 10) + " order by created_unix desc"



Loading…
Cancel
Save