Show More
@@ -53,7 +53,10 b' class PullRequestModel(BaseModel):' | |||||
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): |
General Comments 0
You need to be logged in to leave comments.
Login now