py3: Fix sorting on marked field

This commit is contained in:
Kovid Goyal 2019-04-14 14:41:59 +05:30
parent 828c1f394a
commit c6d993cfdd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -35,7 +35,7 @@ class MarkedVirtualField(object):
def sort_keys_for_books(self, get_metadata, lang_map): def sort_keys_for_books(self, get_metadata, lang_map):
g = self.marked_ids.get g = self.marked_ids.get
return lambda book_id:g(book_id, None) return lambda book_id:g(book_id, '')
class TableRow(object): class TableRow(object):