am ee4997ec: Merge "Convert result of a call to JSON."
* commit 'ee4997ecc3daeb9af110d932ddb27f969cc7271a': Convert result of a call to JSON.
This commit is contained in:
commit
4ca2cda213
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user