Merge "Convert result of a call to JSON."
This commit is contained in:
commit
ee4997ecc3
@ -62,8 +62,8 @@ def get_labels(change_id, patch_set):
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
details = call('/changes/{}/revisions/{}/review'.format(
|
details = json.loads(call('/changes/{}/revisions/{}/review'.format(
|
||||||
change_id, patch_set))
|
change_id, patch_set)))
|
||||||
labels = {'Code-Review': {}, 'Verified': {}}
|
labels = {'Code-Review': {}, 'Verified': {}}
|
||||||
for review in details['labels']['Code-Review']['all']:
|
for review in details['labels']['Code-Review']['all']:
|
||||||
if 'value' in review and 'email' in review:
|
if 'value' in review and 'email' in review:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user