Mercurial > kallithea
comparison rhodecode/model/pull_request.py @ 3262:14e9a06c37a7 beta
fix order of pull-requests in show all page
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 30 Jan 2013 00:11:35 +0100 |
parents | e76859961cbc |
children | 2c0208bd686b |
comparison
equal
deleted
inserted
replaced
3261:54a439edaf99 | 3262:14e9a06c37a7 |
---|---|
51 def __get_pull_request(self, pull_request): | 51 def __get_pull_request(self, pull_request): |
52 return self._get_instance(PullRequest, pull_request) | 52 return self._get_instance(PullRequest, pull_request) |
53 | 53 |
54 def get_all(self, repo): | 54 def get_all(self, repo): |
55 repo = self._get_repo(repo) | 55 repo = self._get_repo(repo) |
56 return PullRequest.query().filter(PullRequest.other_repo == repo).all() | 56 return PullRequest.query()\ |
57 .filter(PullRequest.other_repo == repo)\ | |
58 .order_by(PullRequest.created_on)\ | |
59 .all() | |
57 | 60 |
58 def create(self, created_by, org_repo, org_ref, other_repo, other_ref, | 61 def create(self, created_by, org_repo, org_ref, other_repo, other_ref, |
59 revisions, reviewers, title, description=None): | 62 revisions, reviewers, title, description=None): |
60 from rhodecode.model.changeset_status import ChangesetStatusModel | 63 from rhodecode.model.changeset_status import ChangesetStatusModel |
61 | 64 |