cli/query: bugfix, convert output to list

This commit is contained in:
Sean Breckenridge 2021-04-28 11:10:29 -07:00
parent fa7474c087
commit f18c5f8977

View file

@ -460,8 +460,9 @@ def query_hpi_functions(
elif output == 'pprint': elif output == 'pprint':
from pprint import pprint from pprint import pprint
pprint(res) pprint(list(res))
else: else:
res = list(res)
# output == 'repl' # output == 'repl'
eprint(f"\nInteract with the results by using the {click.style('res', fg='green')} variable\n") eprint(f"\nInteract with the results by using the {click.style('res', fg='green')} variable\n")
try: try: