fix is_asian_name

This commit is contained in:
rlx 2017-08-02 18:47:39 +02:00
parent 791b71425f
commit 70be1b8a96

View file

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