When saving to disk use ; instead of , for author sort separator

This commit is contained in:
Kovid Goyal 2008-02-12 19:59:18 +00:00
parent 612df436ff
commit 3df02e65e1

View File

@ -1293,7 +1293,9 @@ ALTER TABLE books ADD COLUMN isbn TEXT DEFAULT "" COLLATE NOCASE;
au = self.authors(index) au = self.authors(index)
if not au: if not au:
au = 'Unknown' au = 'Unknown'
au = au.split(',')[0] au = au.split(',')[0]
else:
au = au.replace(',', ';')
if not by_author.has_key(au): if not by_author.has_key(au):
by_author[au] = [] by_author[au] = []
by_author[au].append(index) by_author[au].append(index)