diff options
author | H. P. <harald.p.@xmart.de> | 2018-09-25 16:35:37 +0200 |
---|---|---|
committer | H. P. <harald.p.@xmart.de> | 2018-09-25 16:35:37 +0200 |
commit | 8565abab0b451bd26753caf378835ac2698f37dc (patch) | |
tree | 4ed3c3f76c9e368f6a26760d0d1e297bd3fd217e /refresh | |
parent | f62a90b2160b5b2900da8b11fe410abce0889318 (diff) | |
download | timewarrior-holidays-8565abab0b451bd26753caf378835ac2698f37dc.tar.bz2 |
we don't need country in caps at all
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') |