Skip to content

Commit 5297d25

Browse files
committed
correct formating bug
1 parent 5778070 commit 5297d25

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sqlite_bro/sqlite_bro.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1621,8 +1621,9 @@ def guess_sql_creation(table_name, separ, decim, header, data, quoter='"'):
16211621
for i in range(len(r)):
16221622

16231623
if r[i] == "": # 2022-02-04a replace empty column title per usual default
1624+
r[i] = "c_" + ("000" + str(i))[-3:]
16241625

1625-
r[i] = "c_" + ("000" + str(i))[-3:] if r[i] in r[:i]:
1626+
if r[i] in r[:i]:
16261627
j = 1
16271628
while r[i] + "_" + str(j) in r[:i] + r[i + 1 :]:
16281629
j += 1

0 commit comments

Comments
 (0)