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))