Revision 6628
Added by Aaron Marcuse-Kubitza about 12 years ago
bin/dict2redmine | ||
---|---|---|
53 | 53 |
for row in reader: |
54 | 54 |
term = row[term_col] |
55 | 55 |
sources = map(simplify_url, row[sources_col].split(source_sep)) |
56 |
sources_str = source_sep.join(map(source2redmine_url, sources)) |
|
57 | 56 |
def_ = row[def_col] |
58 | 57 |
|
59 |
writer.writerow([redmine_url(term, sources[0]), sources_str, def_]) |
|
58 |
term_str = redmine_url(term, sources[0]) |
|
59 |
sources_str = source_sep.join(map(source2redmine_url, sources)) |
|
60 |
|
|
61 |
writer.writerow([term_str, sources_str, def_]) |
|
60 | 62 |
|
61 | 63 |
main() |
Also available in: Unified diff
dict2redmine: Store term_str in a var before using it, like sources_str