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:
parent
93d44ff2a6
commit
7d57623755
|
@ -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…
Reference in New Issue