From f18c5f897728e84117fe26f581437f60efdd1ccb Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Wed, 28 Apr 2021 11:10:29 -0700 Subject: [PATCH] cli/query: bugfix, convert output to list --- my/core/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/my/core/__main__.py b/my/core/__main__.py index 45a372b..e30d9b2 100644 --- a/my/core/__main__.py +++ b/my/core/__main__.py @@ -460,8 +460,9 @@ def query_hpi_functions( elif output == 'pprint': from pprint import pprint - pprint(res) + pprint(list(res)) else: + res = list(res) # output == 'repl' eprint(f"\nInteract with the results by using the {click.style('res', fg='green')} variable\n") try: