From ede7c502d14c412ee78e84c062ea09ac1e50ad7f Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 30 May 2023 22:12:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E8=A1=A8=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tools/tranexcel/type2.py | 2 -- Tools/tranexcel2/type2.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/tranexcel/type2.py b/Tools/tranexcel/type2.py index 2d0bf699b..574d7a704 100644 --- a/Tools/tranexcel/type2.py +++ b/Tools/tranexcel/type2.py @@ -548,9 +548,7 @@ def construct_lua_data(path, kts, tm, _key_set, data_list, filename, compact, ta if kt.key and not main_key: main_key = format_data(data, kt.type) if len(multi_key) > 0: - print(multi_key.count) sub_item_list.append(construct_lua_item(("id", "int"), tm, main_key, tab, 2)) - # sub_item_list.append('["%s"]=%s' % (format_data("_id", "string"), format_data(main_key, "int"))) else: if 'json' in kt.type: sub_item_list.append(construct_lua_item_json(kt.name, data, tab, 2)) diff --git a/Tools/tranexcel2/type2.py b/Tools/tranexcel2/type2.py index 3c75e5713..89fe17d56 100644 --- a/Tools/tranexcel2/type2.py +++ b/Tools/tranexcel2/type2.py @@ -547,6 +547,8 @@ def construct_lua_data(path, kts, tm, _key_set, data_list, filename, compact, ta data = row.get(kt.name) if kt.key and not main_key: main_key = format_data(data, kt.type) + if len(multi_key) > 0: + sub_item_list.append(construct_lua_item(("id", "int"), tm, main_key, tab, 2)) else: if 'json' in kt.type: sub_item_list.append(construct_lua_item_json(kt.name, data, tab, 2))