Finish issue design

This commit is contained in:
Unknown 2014-05-07 12:09:30 -04:00
parent 8ca14e2109
commit 7407f9caf3
10 changed files with 433 additions and 229 deletions

View file

@ -694,8 +694,8 @@ func GetRepositoryById(id int64) (*Repository, error) {
}
// GetRepositories returns the list of repositories of given user.
func GetRepositories(user *User, private bool) ([]Repository, error) {
repos := make([]Repository, 0, 10)
func GetRepositories(user *User, private bool) ([]*Repository, error) {
repos := make([]*Repository, 0, 10)
sess := orm.Desc("updated")
if !private {
sess.Where("is_private=?", false)