(refs #444)Fix pull request count in dashboard

This commit is contained in:
Naoki Takezoe
2014-07-26 19:12:09 +09:00
parent 618110327a
commit 0822b7b5f3
2 changed files with 25 additions and 18 deletions

View File

@@ -165,6 +165,12 @@ trait RepositoryService { self: AccountService =>
}
}
def getAllRepositories()(implicit s: Session): List[(String, String)] = {
Repositories.sortBy(_.lastActivityDate desc).map{ t =>
(t.userName, t.repositoryName)
}.list
}
def getUserRepositories(userName: String, baseUrl: String, withoutPhysicalInfo: Boolean = false)
(implicit s: Session): List[RepositoryInfo] = {
Repositories.filter { t1 =>