Skip to content

Commit

Permalink
Merge pull request #5 from davidski/Veris_1.2_Country_Update
Browse files Browse the repository at this point in the history
Update convert script for 1.2.1
  • Loading branch information
blackfist committed Mar 26, 2014
2 parents 070923a + 25d892b commit 53008ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/convert-1.2.py
Expand Up @@ -10,18 +10,18 @@

# set globs to "source" : "dest" for json files
# can create more than one if multiple locations
globs = { "veris/*.json" : "new-veris/" }
globs = { "data/*.json" : "new-veris/" }

json_data=open("country_to_code.json").read()
countryMap = json.loads(json_data)
to_version = "1.2"
to_version = "1.2.1"

def fixCountry(country):
# convert to 1.1 naming
if country=="Russian Federation":
country = "Russia"
if country=="United States of America":
country = "United States"
if country=="United States":
country = "United States of America"
if country=="":
country = "Unknown"
# convert to 1.2 naming
Expand Down

0 comments on commit 53008ff

Please sign in to comment.