Merge "Fixed quering new Gerrit"
This commit is contained in:
commit
18fda25411
@ -72,13 +72,13 @@ def query_gerrit(name, count, project):
|
|||||||
if project:
|
if project:
|
||||||
search = search + (" AND project:\"%s\"" % project)
|
search = search + (" AND project:\"%s\"" % project)
|
||||||
query = ("https://review.openstack.org/changes/?q=%s&"
|
query = ("https://review.openstack.org/changes/?q=%s&"
|
||||||
"o=MESSAGES" % search)
|
"o=MESSAGES&o=DETAILED_ACCOUNTS" % search)
|
||||||
r = requests.get(query)
|
r = requests.get(query)
|
||||||
try:
|
try:
|
||||||
changes = json.loads(r.text[4:])
|
changes = json.loads(r.text[4:])
|
||||||
except ValueError:
|
except ValueError:
|
||||||
print "query: '%s' failed with:\n%s" % (query, r.text)
|
print "query: '%s' failed with:\n%s" % (query, r.text)
|
||||||
sys.exit(1)
|
return []
|
||||||
|
|
||||||
comments = []
|
comments = []
|
||||||
for change in changes:
|
for change in changes:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user