Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/537/head
zouap 3 years ago
parent
commit
62138f4aa2
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      routers/repo/user_data_analysis.go

+ 3
- 2
routers/repo/user_data_analysis.go View File

@@ -19,8 +19,9 @@ func TimeingCountData() {
wikiPath := models.WikiPath(repoRecord.OwnerName, repoRecord.Name)
wikiRepo, commit, err := FindWikiRepoCommitByWikiPath(wikiPath)
if err != nil {
log.Error("query error.")
log.Error("wiki not exist. wikiPath=" + wikiPath)
} else {
log.Info("wiki exist, wikiPath=" + wikiPath)
entries, err := commit.ListEntries()
if err != nil {
if wikiRepo != nil {
@@ -50,7 +51,7 @@ func TimeingCountData() {
} else {
log.Info("json=" + string(jsonObj))
}
log.Info("wikiName=" + wikiName + " SubURL=" + wiki_service.NameToSubURL(wikiName))
pages = append(pages, PageMeta{
Name: wikiName,
SubURL: wiki_service.NameToSubURL(wikiName),


Loading…
Cancel
Save