|
|
|
@ -150,8 +150,6 @@ type RepositoryLabel struct {
|
|
|
|
|
Color string `xorm:"VARCHAR(7)"` |
|
|
|
|
IsPrivate bool |
|
|
|
|
|
|
|
|
|
NumRepo int |
|
|
|
|
|
|
|
|
|
Created time.Time `xorm:"-"` |
|
|
|
|
CreatedUnix int64 |
|
|
|
|
Updated time.Time `xorm:"-"` |
|
|
|
@ -1869,6 +1867,14 @@ func GetRepositoryCount(u *User) (int64, error) {
|
|
|
|
|
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 { |
|
|
|
|
Keyword string |
|
|
|
|
OwnerID int64 |
|
|
|
|