Skip to content
Snippets Groups Projects
Commit fc76c5f3 authored by Gabriel Studer's avatar Gabriel Studer
Browse files

col_name is already added at the beginning, so it wouldn't enter the elif

in case of an empty table (what we actually want...)
parent d3483500
Branches
Tags
No related merge requests found
......@@ -657,7 +657,7 @@ class Table(object):
for row, d in zip(self.rows, data):
row.append(d)
elif data!=None and len(self.col_names)==0:
elif data!=None and len(self.col_names)==1:
if IsScalar(data):
self.AddRow({col_name : data})
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment