From 25d892b788ccefda7ce66d43fb37c0d7382def8b Mon Sep 17 00:00:00 2001 From: "David F. Severski" Date: Thu, 16 Jan 2014 16:03:37 -0800 Subject: [PATCH] Update Convert for 1.2.1 Modify convert script to default to VERIS 1.2.1 as target. Alter country fix up code to account for current "United States of America" country label instead of "United States", per enums. --- bin/convert-1.2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/convert-1.2.py b/bin/convert-1.2.py index 9a9fe01c..a43fc80a 100644 --- a/bin/convert-1.2.py +++ b/bin/convert-1.2.py @@ -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