Commits

Olav Andreas Lindekleiv committed 38d3ffe

Added back None columns.

  • Participants
  • Parent commits 8f6a8c1

Comments (0)

Files changed (1)

             for column in columns:
                 if column in map_dict:
                     new_columns.append(map_dict[column])
+                else:
+                    new_columns.append(None)
             columns = new_columns
 
         # Insert query:
         # Comma separated column names:
         query_columns = []
         for column in columns:
-            query_columns.append(column)
+            if column:
+                query_columns.append(column)
         query.append(', '.join(query_columns))
 
         # Rows: