From 1be0187f5ed91dcaae7abbbe93698c3044a8143d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Mon, 18 Nov 2019 12:06:22 +0100 Subject: [PATCH] fixed json output --- scripts/phabtalk/apply_patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/phabtalk/apply_patch.py b/scripts/phabtalk/apply_patch.py index fcc2037..51758d6 100755 --- a/scripts/phabtalk/apply_patch.py +++ b/scripts/phabtalk/apply_patch.py @@ -36,7 +36,7 @@ def _get_parent_hash(diff_id: str, phab: Phabricator, diff_json_path: str) -> st diff = phab.differential.getdiff(diff_id=diff_id) # Keep a copy of the Phabricator answer for later usage in a json file with open(diff_json_path,'w') as json_file: - json.dump(diff, json_file, sort_keys=True, indent=4) + json.dump(diff.response, json_file, sort_keys=True, indent=4) return diff['sourceControlBaseRevision']