From 1fe5d511431fd2c0fb76c6233d4ad1a15841fca7 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Mon, 20 Jul 2020 09:52:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/api/views/apps.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fir_ser/api/views/apps.py b/fir_ser/api/views/apps.py index 861fb35..38cb32c 100644 --- a/fir_ser/api/views/apps.py +++ b/fir_ser/api/views/apps.py @@ -257,10 +257,9 @@ class AppReleaseinfoView(APIView): elif appreleaseobj.is_master and apprelease_count < 2: logger.info("delete app master release %s and clean app %s " % (appreleaseobj, apps_obj)) - if apps_obj: - if apps_obj.issupersign: - logger.info("app_id:%s is supersign ,delete this app need clean IOS developer" % (app_id)) - IosUtils.clean_app_by_user_obj(apps_obj, request.user) + if apps_obj.issupersign: + logger.info("app_id:%s is supersign ,delete this app need clean IOS developer" % (app_id)) + IosUtils.clean_app_by_user_obj(apps_obj, request.user) storage.delete_file(appreleaseobj.release_id, appreleaseobj.release_type) storage.delete_file(appreleaseobj.icon_url)