Browse Source

Merge pull request '前端需要,排序修改为倒序' (#848) from fix-828 into V20211115

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/848
Reviewed-by: lewis <747342561@qq.com>
pull/864/head
lewis 3 years ago
parent
commit
dd9cfafc04
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

@@ -396,7 +396,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" +
" 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"
" and created_unix<" + strconv.FormatInt(endTime.Unix(), 10) + " order by created_unix desc"

return sql
}


Loading…
Cancel
Save