From ccf55bcd0180a03035daf185808868ff31da3db6 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sat, 26 Oct 2019 00:57:51 -0400 Subject: [PATCH] simplify line in generate_json_api.py --- lbry/scripts/generate_json_api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lbry/scripts/generate_json_api.py b/lbry/scripts/generate_json_api.py index 3fac4d7d5..d1eca3c69 100644 --- a/lbry/scripts/generate_json_api.py +++ b/lbry/scripts/generate_json_api.py @@ -325,11 +325,10 @@ class Examples(CommandTestCase): # files - file_list_result = await r( + file_list_result = (await r( 'List local files', 'file', 'list' - ) - file_list_result = file_list_result.get('items') + ))['items'] file_uri = f"{file_list_result[0]['claim_name']}#{file_list_result[0]['claim_id']}" await r( 'Resolve a claim',