mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fixes for device collections
This commit is contained in:
parent
6dadf8cf0e
commit
a5204b6eac
@ -899,7 +899,8 @@ class DeviceBooksModel(BooksModel): # {{{
|
|||||||
x, y = int(self.db[x].size), int(self.db[y].size)
|
x, y = int(self.db[x].size), int(self.db[y].size)
|
||||||
return cmp(x, y)
|
return cmp(x, y)
|
||||||
def tagscmp(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)
|
return cmp(x, y)
|
||||||
def libcmp(x, y):
|
def libcmp(x, y):
|
||||||
x, y = self.db[x].in_library, self.db[y].in_library
|
x, y = self.db[x].in_library, self.db[y].in_library
|
||||||
@ -969,7 +970,7 @@ class DeviceBooksModel(BooksModel): # {{{
|
|||||||
data[_('Path')] = item.path
|
data[_('Path')] = item.path
|
||||||
dt = dt_factory(item.datetime, assume_utc=True)
|
dt = dt_factory(item.datetime, assume_utc=True)
|
||||||
data[_('Timestamp')] = isoformat(dt, sep=' ', as_utc=False)
|
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)
|
self.new_bookdisplay_data.emit(data)
|
||||||
|
|
||||||
def paths(self, rows):
|
def paths(self, rows):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user