|
|
@ -150,8 +150,6 @@ type RepositoryLabel struct { |
|
|
|
Color string `xorm:"VARCHAR(7)"` |
|
|
|
Color string `xorm:"VARCHAR(7)"` |
|
|
|
IsPrivate bool |
|
|
|
IsPrivate bool |
|
|
|
|
|
|
|
|
|
|
|
NumRepo int |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Created time.Time `xorm:"-"` |
|
|
|
Created time.Time `xorm:"-"` |
|
|
|
CreatedUnix int64 |
|
|
|
CreatedUnix int64 |
|
|
|
Updated time.Time `xorm:"-"` |
|
|
|
Updated time.Time `xorm:"-"` |
|
|
@ -1869,6 +1867,14 @@ func GetRepositoryCount(u *User) (int64, error) { |
|
|
|
return getRepositoryCount(x, u) |
|
|
|
return getRepositoryCount(x, u) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func getRepositoryLabelCount(e Engine, u *User) (int64, error) { |
|
|
|
|
|
|
|
return x.Count(&RepositoryLabel{OwnerID: u.ID}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func GetRepositoryLabelCount(u *User) (int64, error) { |
|
|
|
|
|
|
|
return getRepositoryLabelCount(x, u) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type SearchRepoOptions struct { |
|
|
|
type SearchRepoOptions struct { |
|
|
|
Keyword string |
|
|
|
Keyword string |
|
|
|
OwnerID int64 |
|
|
|
OwnerID int64 |
|
|
|