Fix #2076515 [calibredb list command ignores fields option](https://bugs.launchpad.net/calibre/+bug/2076515)

This commit is contained in:
Kovid Goyal 2024-08-11 20:18:29 +05:30
parent 408193c895
commit 34f7b9eaf4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -170,7 +170,7 @@ def do_list(
):
if sort_by is None:
ascending = True
if dbctx.is_remote and (template or template_file or template_title):
if dbctx.is_remote and (template or template_file):
raise SystemExit(_('The use of templates is disallowed when connecting to remote servers for security reasons'))
if 'template' in (f.strip() for f in fields):
if template_file: