From b24e2a4c6b0575360b22df4df8fe2651d7995487 Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Wed, 16 Feb 2022 15:44:44 +0800 Subject: [PATCH] fix-1399 --- routers/repo/repo_statistic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/repo/repo_statistic.go b/routers/repo/repo_statistic.go index dce183f49b..d9545f6966 100755 --- a/routers/repo/repo_statistic.go +++ b/routers/repo/repo_statistic.go @@ -106,7 +106,7 @@ func RepoStatisticDaily(date string) { repoStat := models.RepoStatistic{ RepoID: repo.ID, Date: date, - Name: repo.Name, + Name: repo.Alias, IsPrivate: repo.IsPrivate, IsMirror: repo.IsMirror, OwnerName: repo.OwnerName, @@ -282,7 +282,7 @@ func RepoStatisticDaily(date string) { } func getDistinctProjectName(repo *models.Repository) string { - return repo.OwnerName + "/" + repo.Name + return repo.OwnerName + "/" + repo.Alias } func getDatasetSize(repo *models.Repository) (int64, error) { -- 2.34.1