core: fix values casting

This commit is contained in:
panni 2019-12-24 02:33:22 +01:00
parent a612335a44
commit d0ccd08aef
1 changed files with 2 additions and 2 deletions

View File

@ -33,9 +33,9 @@ repl_map = {
} }
ALPHA2_LIST = list(set(filter(lambda x: x, map(lambda x: x.alpha2, LANGUAGE_MATRIX)) + repl_map.values())) ALPHA2_LIST = list(set(filter(lambda x: x, map(lambda x: x.alpha2, LANGUAGE_MATRIX)) + list(repl_map.values())))
ALPHA3b_LIST = list(set(filter(lambda x: x, map(lambda x: x.alpha3, LANGUAGE_MATRIX)) + ALPHA3b_LIST = list(set(filter(lambda x: x, map(lambda x: x.alpha3, LANGUAGE_MATRIX)) +
filter(lambda x: len(x) == 3, repl_map.keys()))) filter(lambda x: len(x) == 3, list(repl_map.keys()))))
FULL_LANGUAGE_LIST = ALPHA2_LIST + ALPHA3b_LIST FULL_LANGUAGE_LIST = ALPHA2_LIST + ALPHA3b_LIST