diff options
Diffstat (limited to 'refresh')
-rwxr-xr-x | refresh | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -82,15 +82,14 @@ def hparse(lines, locode, year): sys.stdout.write(".") jdata = json.loads(line) mylocale = unicode(jdata['locale']) - mycountry = mylocale.split('-')[1] - myscountry = mycountry.lower() + mycountry = mylocale.split('-')[1].lower() myregion = unicode(jdata['region']) if myregion == "": myregion = mylocale.split('-')[1] # holidata.net violates ISO-3166-2:DE here: if myregion == "NRW": myregion = "NW" # or Neustadt/Weinstr., Palz > Pott - myhlocale = unicode(myscountry + "-" + myregion) + myhlocale = unicode(mycountry + "-" + myregion) if jdata['date'] == "": print("%s has no date given for %s!", jdata['description'], jdata['locale']) mydate = unicode('1970_01_01') |