Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Class to handle the loading of countries in the app """
def get_countries_data():
def get_iso_conv():
# Need to load the information for converting # countries alpha-3 code to alpha-2 code
else: "This country is not correctly identified and won't be inserted in db:", row, )
name=row["Country or Area"], iso_alpha2_code=code_alpha_2, iso_alpha3_code=code_iso_3, region_name=row["Region Name"], region_un_code=row["Region Code"], sub_region_name=row["Sub-region Name"], sub_region_un_code=row["Sub-region Code"], intermediate_region_name=row["Intermediate Region Name"], intermediate_region_un_code=row["Intermediate Region Code"], ) |