Skip to content

Commit

Permalink
fixed wrong row number for key3/val3
Browse files Browse the repository at this point in the history
  • Loading branch information
maning committed Jun 27, 2016
1 parent fc54c0c commit 2c131f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osm_tags.py
Expand Up @@ -26,8 +26,8 @@ def csv_to_json(mapping_name, csv_file):
mappings[mapping_name][row[0]]['val2'] = row[4];
if len(row) > 6:
if row[5] != '' and row[6] != '':
mappings[mapping_name][row[0]]['key3'] = row[4];
mappings[mapping_name][row[0]]['val3'] = row[5];
mappings[mapping_name][row[0]]['key3'] = row[5];
mappings[mapping_name][row[0]]['val3'] = row[6];
# print mappings

csv_to_json('GeneralUse', GENERAL_USE_CSV)
Expand Down

0 comments on commit 2c131f5

Please sign in to comment.