diff --git a/progit/ui/fork.py b/progit/ui/fork.py index eed6180..00ff86a 100644 --- a/progit/ui/fork.py +++ b/progit/ui/fork.py @@ -65,10 +65,10 @@ def request_pulls(repo, username=None): flask.abort(404, 'Project not found') if status is False or str(status).lower() == 'closed': - requests = progit.lib.get_pull_requests( + requests = progit.lib.search_pull_requests( SESSION, project_id=repo.id, status=False) else: - requests = progit.lib.get_pull_requests( + requests = progit.lib.search_pull_requests( SESSION, project_id=repo.id, status=status) return flask.render_template( @@ -92,7 +92,7 @@ def request_pull(repo, requestid, username=None): if not repo: flask.abort(404, 'Project not found') - request = progit.lib.get_pull_requests( + request = progit.lib.search_pull_requests( SESSION, project_id=repo.id, requestid=requestid) if not request: @@ -194,7 +194,7 @@ def request_pull_patch(repo, requestid, username=None): if not repo: flask.abort(404, 'Project not found') - request = progit.lib.get_pull_requests( + request = progit.lib.search_pull_requests( SESSION, project_id=repo.id, requestid=requestid) if not request: @@ -265,7 +265,7 @@ def pull_request_add_comment(repo, requestid, commit, filename, row, if not repo: flask.abort(404, 'Project not found') - request = progit.lib.get_pull_requests( + request = progit.lib.search_pull_requests( SESSION, project_id=repo.id, requestid=requestid) repo = request.repo_from @@ -333,7 +333,7 @@ def merge_request_pull(repo, requestid, username=None): if not repo: flask.abort(404, 'Project not found') - request = progit.lib.get_pull_requests( + request = progit.lib.search_pull_requests( SESSION, project_id=repo.id, requestid=requestid) if not request: @@ -473,7 +473,7 @@ def cancel_request_pull(repo, requestid, username=None): if not repo: flask.abort(404, 'Project not found') - request = progit.lib.get_pull_requests( + request = progit.lib.search_pull_requests( SESSION, project_id=repo.id, requestid=requestid) if not request: