Skip to content

Commit 6d80070

Browse files
committed
Fix table name.
1 parent 5a0e8d0 commit 6d80070

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

log2csv.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def create_list_of_files_to_convert(args):
4646
if log_type in args.log_types:
4747

4848
table_name = get_table_name(log_type)
49+
if table_name == False:
50+
table_name = log_type
4951
processor = get_processor(log_type)
5052
logger.debug(item)
5153
csv_file = f"""{item}.csv"""
@@ -80,7 +82,7 @@ def get_table_name(log_type):
8082
if log_type in data:
8183
kv_headers[log_type] = {}
8284
table_name = False
83-
if data[log_type]["table_name"]:
85+
if "table_name" in data[log_type]:
8486
table_name = data[log_type]["table_name"]
8587
return table_name
8688

0 commit comments

Comments
 (0)