From a5204b6eac17c5200455fb6f34e7991fab13edea Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 19 May 2010 22:44:41 -0600 Subject: [PATCH] Fixes for device collections --- src/calibre/gui2/library/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index 3f0dfc5065..66ebc4dc53 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -899,7 +899,8 @@ class DeviceBooksModel(BooksModel): # {{{ x, y = int(self.db[x].size), int(self.db[y].size) return cmp(x, y) def tagscmp(x, y): - x, y = ','.join(self.db[x].tags), ','.join(self.db[y].tags) + x = ','.join(self.db[x].device_collections) + y = ','.join(self.db[y].device_collections) return cmp(x, y) def libcmp(x, y): x, y = self.db[x].in_library, self.db[y].in_library @@ -969,7 +970,7 @@ class DeviceBooksModel(BooksModel): # {{{ data[_('Path')] = item.path dt = dt_factory(item.datetime, assume_utc=True) data[_('Timestamp')] = isoformat(dt, sep=' ', as_utc=False) - data[_('Tags')] = ', '.join(item.tags) + data[_('Collections')] = ', '.join(item.device_collections) self.new_bookdisplay_data.emit(data) def paths(self, rows):