mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 16:13:38 +02:00
renamed Catalog.search_sort_db_as_dict() to search_sort_db
This commit is contained in:
parent
a94451984d
commit
758c24a9ce
2 changed files with 2 additions and 2 deletions
|
|
@ -249,7 +249,7 @@ class CatalogPlugin(Plugin):
|
|||
|
||||
cli_options = []
|
||||
|
||||
def search_sort_db_as_dict(self, db, opts):
|
||||
def search_sort_db(self, db, opts):
|
||||
if opts.search_text:
|
||||
db.search(opts.search_text)
|
||||
if opts.sort_by:
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ def run(self, path_to_output, opts, db):
|
|||
log(" %s: %s" % (key, opts_dict[key]))
|
||||
|
||||
# Get the sorted, filtered database as a dictionary
|
||||
data = self.search_sort_db_as_dict(db, opts)
|
||||
data = self.search_sort_db(db, opts)
|
||||
|
||||
if not len(data):
|
||||
log.error("\nNo matching database entries for search criteria '%s'" % opts.search_text)
|
||||
|
|
|
|||
Loading…
Reference in a new issue