Index: spongenet/trunk/spongenet/query.py =================================================================== --- spongenet/trunk/spongenet/query.py (revision 384) +++ spongenet/trunk/spongenet/query.py (revision 385) @@ -436,10 +436,9 @@ rows = [[] for cell in varmap["time"]] for column in columns: - for pos in range(len(rows)): - cell = varmap[column][pos] + for row, cell in zip(rows, varmap[column]): if column == "time": cell = time.strftime("%m/%d/%Y %H:%M:%S", time.gmtime(cell)) - rows[pos].append(cell) + row.append(cell) # Output the CSV file.