Skip to content

Commit

Permalink
correct formating bug
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebig committed Feb 4, 2022
1 parent 5778070 commit 5297d25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sqlite_bro/sqlite_bro.py
Original file line number Diff line number Diff line change
Expand Up @@ -1621,8 +1621,9 @@ def guess_sql_creation(table_name, separ, decim, header, data, quoter='"'):
for i in range(len(r)):

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

r[i] = "c_" + ("000" + str(i))[-3:] if r[i] in r[:i]:
if r[i] in r[:i]:
j = 1
while r[i] + "_" + str(j) in r[:i] + r[i + 1 :]:
j += 1
Expand Down

0 comments on commit 5297d25

Please sign in to comment.