From 7bd012fb0c58b386ea27e95041bf567171122343 Mon Sep 17 00:00:00 2001 From: han0 Date: Wed, 18 Nov 2020 08:32:29 +0800 Subject: [PATCH] fix: rename --- nc_http/core/{front_end_sucks.py => fe_sucks.py} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename nc_http/core/{front_end_sucks.py => fe_sucks.py} (97%) diff --git a/nc_http/core/front_end_sucks.py b/nc_http/core/fe_sucks.py similarity index 97% rename from nc_http/core/front_end_sucks.py rename to nc_http/core/fe_sucks.py index da0b93a..0c78fea 100644 --- a/nc_http/core/front_end_sucks.py +++ b/nc_http/core/fe_sucks.py @@ -8,7 +8,7 @@ class HandleType: STAT = 3 # 统计回归 -class FrontEndSucksUtil: +class FESucks: """ Don't blame me, we have a terrible Front-End coder. """ @@ -189,7 +189,7 @@ class FrontEndSucksUtil: data = [] for row in rows: if row[parent_id_key] == i: - row['children'] = FrontEndSucksUtil.list_to_tree(rows, id_key, parent_id_key, row[id_key]) + row['children'] = FESucks.list_to_tree(rows, id_key, parent_id_key, row[id_key]) data.append(row) return data