From 28ff95bf0dabd7d25af08062a40eea94429e102d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E8=83=9C=E8=88=9F?= <1650473152@qq.com> Date: Wed, 17 Nov 2021 02:41:27 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!25=20:?= =?UTF-8?q?=20=E3=80=90=E8=BD=BB=E9=87=8F=E7=BA=A7=20PR=E3=80=91=EF=BC=9Au?= =?UTF-8?q?pdate=20applications/common/admin.py.'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/common/admin.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/applications/common/admin.py b/applications/common/admin.py index 403c983..275e6de 100644 --- a/applications/common/admin.py +++ b/applications/common/admin.py @@ -60,18 +60,6 @@ def make_menu_tree(): for p0 in power0_dict: for p1 in power1_dict: - for p2 in power1_dict: - if p1.get('id') == p2.get('parent_id') and int(p2.get('type'))<2: - if p1.get("children") is None: - p1['children'] = [] - p1['children'].append(p2) - else: - hassame = 0 - for tmp in p1['children']: - if tmp.get('id') == p2.get('id'): - hassame =1 - if hassame == 0: - p1['children'].append(p2) if p0.get('id') == p1.get('parent_id'): if p0.get("children") is None: p0['children'] = [] -- Gitee