Project

General

Profile

« Previous | Next » 

Revision 6677

dict2redmine: Fixed bug where all header fields need to be preserved because columns are now filtered out instead of removed in each row

View differences:

dict2redmine
59 59
    '''Formats rows as Redmine sections containing a table'''
60 60
    
61 61
    def __init__(self, term_col, def_col, header, stream):
62
        header.pop(term_col)
63
        header.pop(def_col)
64
        
65 62
        self.term_col = term_col
66 63
        self.def_col = def_col
67 64
        self.header = header
......
75 72
        
76 73
        table = RedmineTableWriter(self.stream)
77 74
        for i, col_name in enumerate(self.header):
78
            if i not in set([self.term_col, self.def_col]):
75
            if not i in set([self.term_col, self.def_col]):
79 76
                value = row[i]
80 77
                if value: table.writerow([redmine_bold(col_name), value])
81 78
        self.stream.write('\n')

Also available in: Unified diff