country.alpha3 -> country.alpha_3

apparently the pycountry API has changed a little
master
tpltnt 2017-04-27 12:39:59 +02:00 committed by GitHub
parent 409397056d
commit 5848d79bbf
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ Backgrounds = [
BackgroundKeys = [x[0] for x in Backgrounds] BackgroundKeys = [x[0] for x in Backgrounds]
Countries = [(country.alpha3, country.name) for country in pycountry.countries] Countries = [(country.alpha_3, country.name) for country in pycountry.countries]
Countries = (sorted(Countries, key=lambda x: "0" if x[1] == "Iceland" else x[1])) Countries = (sorted(Countries, key=lambda x: "0" if x[1] == "Iceland" else x[1]))
CountryKeys = [x[0] for x in Countries] CountryKeys = [x[0] for x in Countries]