Cleaned up logic in cmd_line query(). Closes #17
This commit is contained in:
@@ -194,21 +194,23 @@ def query(
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# if no query terms, show help and return
|
# if no query terms, show help and return
|
||||||
if (
|
if not any(
|
||||||
not keyword
|
[
|
||||||
and not person
|
keyword,
|
||||||
and not album
|
person,
|
||||||
and not uuid
|
album,
|
||||||
and not name
|
uuid,
|
||||||
and not no_name
|
name,
|
||||||
and not description
|
no_name,
|
||||||
and not no_description
|
description,
|
||||||
and not favorite
|
no_description,
|
||||||
and not not_favorite
|
favorite,
|
||||||
and not hidden
|
not_favorite,
|
||||||
and not not_hidden
|
hidden,
|
||||||
and not missing
|
not_hidden,
|
||||||
and not not_missing
|
missing,
|
||||||
|
not_missing,
|
||||||
|
]
|
||||||
):
|
):
|
||||||
print(cli.commands["query"].get_help(ctx))
|
print(cli.commands["query"].get_help(ctx))
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user