Convert result of a call to JSON.

I still had the service that was relying on this running on top of
local changes, so this hadn't been a problem yet.

Change-Id: I63b45b8c7cf81972dbb7128013c1c777a2342d4c
This commit is contained in:
Dan Albert 2015-03-24 11:43:55 -07:00
parent 93d44ff2a6
commit 7d57623755
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@ def get_labels(change_id, patch_set):
}
}
"""
details = call('/changes/{}/revisions/{}/review'.format(
change_id, patch_set))
details = json.loads(call('/changes/{}/revisions/{}/review'.format(
change_id, patch_set)))
labels = {'Code-Review': {}, 'Verified': {}}
for review in details['labels']['Code-Review']['all']:
if 'value' in review and 'email' in review: