Revision 6634
Added by Aaron Marcuse-Kubitza about 12 years ago
dict2redmine | ||
---|---|---|
51 | 51 |
writer.writerow(map(redmine_bold, reader.next())) # header |
52 | 52 |
for row in reader: |
53 | 53 |
term = row[term_col] |
54 |
sources = map(simplify_url, row[sources_col].split(source_sep))
|
|
54 |
sources = row[sources_col].split(source_sep)
|
|
55 | 55 |
|
56 |
row[term_col] = redmine_url(term, sources[0])
|
|
56 |
row[term_col] = redmine_url(term, simplify_url(sources[0]))
|
|
57 | 57 |
row[sources_col] = source_sep.join(map(source2redmine_url, sources)) |
58 | 58 |
|
59 | 59 |
writer.writerow(row) |
Also available in: Unified diff
dict2redmine: Call simplify_url() just on the first source so that source2redmine_url() can use the raw URL (to extract comments, etc.)