diff options
author | Lauris BH <lauris@nix.lv> | 2017-08-28 17:06:10 +0300 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-08-28 22:06:10 +0800 |
commit | edb95faba2534d9bf53068b69db99ffa7b71938f (patch) | |
tree | 56a9ffb83c1bffe1da1d7a307363d9500ac08d13 /models | |
parent | d23b36c598cd30f2da7446ef20154f6172ae8795 (diff) | |
download | gitea-edb95faba2534d9bf53068b69db99ffa7b71938f.tar.gz gitea-edb95faba2534d9bf53068b69db99ffa7b71938f.zip |
Fix releases to be counted from database not tags (#2389)
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index 47deba2da7..81c9d4a11f 100644 --- a/models/repo.go +++ b/models/repo.go @@ -194,7 +194,7 @@ type Repository struct { NumMilestones int `xorm:"NOT NULL DEFAULT 0"` NumClosedMilestones int `xorm:"NOT NULL DEFAULT 0"` NumOpenMilestones int `xorm:"-"` - NumTags int `xorm:"-"` + NumReleases int `xorm:"-"` IsPrivate bool `xorm:"INDEX"` IsBare bool `xorm:"INDEX"` |