From e1492c54310953ad62de5da98f9c2f912483900c Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 30 Sep 2021 17:25:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/user_data_analysis.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/routers/repo/user_data_analysis.go b/routers/repo/user_data_analysis.go index bc449c8f8..ad08359b4 100644 --- a/routers/repo/user_data_analysis.go +++ b/routers/repo/user_data_analysis.go @@ -22,6 +22,14 @@ func TimeingCountData() { log.Error("wiki not exist. wikiPath=" + wikiPath) } else { log.Info("wiki exist, wikiPath=" + wikiPath) + + lastCommit, _ := wikiRepo.GetBranchCommit("master") + lastCommitObj, err := json.Marshal(lastCommit) + if err != nil { + log.Error("convert to json error.") + } else { + log.Info("json=" + string(lastCommitObj)) + } entries, err := commit.ListEntries() if err != nil { if wikiRepo != nil { @@ -35,12 +43,10 @@ func TimeingCountData() { } wikiName, err := wiki_service.FilenameToName(entry.Name()) if err != nil { - if models.IsErrWikiInvalidFileName(err) { - continue - } if wikiRepo != nil { wikiRepo.Close() } + continue } else if wikiName == "_Sidebar" || wikiName == "_Footer" { continue }