mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
b2f16f291e
commit
5e20a936b7
@ -362,9 +362,6 @@ def search(title=None, author=None, publisher=None, isbn=None, isbndb_key=None,
|
|||||||
if r.pubdate is None:
|
if r.pubdate is None:
|
||||||
r.pubdate = pubdate
|
r.pubdate = pubdate
|
||||||
|
|
||||||
# for r in results:
|
|
||||||
# print "{0:14.14} {1:30.30} {2:20.20} {3:6} {4}".format(r.isbn, r.title, r.publisher, len(r.comments if r.comments else ''), r.has_cover)
|
|
||||||
|
|
||||||
return results, [(x.name, x.exception, x.tb) for x in fetchers]
|
return results, [(x.name, x.exception, x.tb) for x in fetchers]
|
||||||
|
|
||||||
def get_social_metadata(mi, verbose=0):
|
def get_social_metadata(mi, verbose=0):
|
||||||
|
@ -42,9 +42,6 @@ class Matches(QAbstractTableModel):
|
|||||||
|
|
||||||
def __init__(self, matches):
|
def __init__(self, matches):
|
||||||
self.matches = matches
|
self.matches = matches
|
||||||
self.matches.sort(cmp=lambda b, a: \
|
|
||||||
cmp(len(a.comments if a.comments else ''),
|
|
||||||
len(b.comments if b.comments else '')))
|
|
||||||
QAbstractTableModel.__init__(self)
|
QAbstractTableModel.__init__(self)
|
||||||
|
|
||||||
def rowCount(self, *args):
|
def rowCount(self, *args):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user