fix is_asian_name

This commit is contained in:
rlx 2017-08-02 18:48:43 +02:00
parent 70be1b8a96
commit fdc68a85e2

View file

@ -309,7 +309,7 @@ def get_sort_name(name):
names = name.split(' ') names = name.split(' ')
if '-' in names[0]: if '-' in names[0]:
firstnames = names[0].split('-') firstnames = names[0].split('-')
names[0] = '-'.join(firstnames[0], firstnames[1].lower()) names[0] = '-'.join([firstnames[0], firstnames[1].lower()])
return names[-1] + ' ' + ' '.join(names[:-1]) return names[-1] + ' ' + ' '.join(names[:-1])
first_names = name.split(' ') first_names = name.split(' ')