fix is_asian_name

This commit is contained in:
rlx 2017-08-02 19:51:14 +02:00
parent 5ca89dfe08
commit 18176630ef

View file

@ -306,7 +306,7 @@ def get_sort_name(name):
return len(first_names) and first_names[-1].lower() in names return len(first_names) and first_names[-1].lower() in names
if is_asian_name(name): if is_asian_name(name):
names = name.replace('-').split(' ') names = name.replace('-', ' ').split(' ')
if len(names) == 2: if len(names) == 2:
if names[0].lower() in ASIAN_LAST_NAMES: if names[0].lower() in ASIAN_LAST_NAMES:
lastname, firstname = names lastname, firstname = names