Merge "Convert result of a call to JSON."

This commit is contained in:
Dan Albert 2015-03-24 21:28:30 +00:00 committed by Gerrit Code Review
commit ee4997ecc3

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: