导表工具
This commit is contained in:
parent
075d7a2480
commit
ede7c502d1
@ -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))
|
||||
|
||||
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user