Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit bba333b3d6182cee26a18e1d0f7d2ff48cbd1062
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Nov 13 13:45:01 2015 +0100
R: 87, 4: Method could be a function (no-self-use)
---------------------------------------------------------------
.../coprs/rest_api/resources/project_chroot.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/rest_api/resources/project_chroot.py
b/frontend/coprs_frontend/coprs/rest_api/resources/project_chroot.py
index 6ce45f9..4f1ebb2 100644
--- a/frontend/coprs_frontend/coprs/rest_api/resources/project_chroot.py
+++ b/frontend/coprs_frontend/coprs/rest_api/resources/project_chroot.py
@@ -85,8 +85,9 @@ class ProjectChrootR(Resource):
return render_copr_chroot(chroot)
+ @classmethod
@rest_api_auth_required
- def delete(self, project_id, name):
+ def delete(cls, project_id, name):
project = get_project_safe(project_id)
chroot = CoprChrootsLogic.get_by_name_safe(project, name)