Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 6f1c6021f435be555befd7cf267cc053d06aa07e
Author: Richard Marko <rmarko(a)fedoraproject.org>
Date: Wed Nov 13 16:11:57 2013 +0100
[frontend] rewrite backend view to use Build <-> Chroot relation
Fix BuildsLogic to update status of chroot objects
instead of Build directly, drop some unused parameters.
Signed-off-by: Richard Marko <rmarko(a)fedoraproject.org>
---------------------------------------------------------------
.../coprs/views/coprs_ns/coprs_builds.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py
b/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py
index da87f7c..aa35ea3 100644
--- a/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py
+++ b/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py
@@ -73,7 +73,7 @@ def copr_new_build(username, coprname):
@login_required
def copr_cancel_build(username, coprname, build_id):
# only the user who ran the build can cancel it
- build = builds_logic.BuildsLogic.get(flask.g.user, build_id).first()
+ build = builds_logic.BuildsLogic.get(build_id).first()
if not build: # hey, this Build doesn't exist
return page_not_found('Build with id {0} does not
exist.'.format(build_id))
try:
@@ -90,7 +90,7 @@ def copr_cancel_build(username, coprname, build_id):
@coprs_ns.route('/<username>/<coprname>/repeat_build/<int:build_id>/',
methods = ['POST'])
@login_required
def copr_repeat_build(username, coprname, build_id):
- build = builds_logic.BuildsLogic.get(flask.g.user, build_id).first()
+ build = builds_logic.BuildsLogic.get(build_id).first()
copr = coprs_logic.CoprsLogic.get(flask.g.user, username=username,
coprname=coprname).first()
if not build: # hey, this Build doesn't exist