mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
commit
1c4abf5222
@ -249,7 +249,7 @@ class CatalogPlugin(Plugin):
|
|||||||
|
|
||||||
cli_options = []
|
cli_options = []
|
||||||
|
|
||||||
def search_sort_db_as_dict(self, db, opts):
|
def search_sort_db(self, db, opts):
|
||||||
if opts.search_text:
|
if opts.search_text:
|
||||||
db.search(opts.search_text)
|
db.search(opts.search_text)
|
||||||
if opts.sort_by:
|
if opts.sort_by:
|
||||||
|
@ -55,7 +55,7 @@ class CSV_XML(CatalogPlugin):
|
|||||||
log(" %s: %s" % (key, opts_dict[key]))
|
log(" %s: %s" % (key, opts_dict[key]))
|
||||||
|
|
||||||
# Get the sorted, filtered database as a dictionary
|
# 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):
|
if not len(data):
|
||||||
log.error("\nNo matching database entries for search criteria '%s'" % opts.search_text)
|
log.error("\nNo matching database entries for search criteria '%s'" % opts.search_text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user