Merge "Fixed quering new Gerrit"

This commit is contained in:
Jenkins 2016-01-20 17:58:48 +00:00 committed by Gerrit Code Review
commit 18fda25411
1 changed files with 2 additions and 2 deletions

View File

@ -72,13 +72,13 @@ def query_gerrit(name, count, project):
if project:
search = search + (" AND project:\"%s\"" % project)
query = ("https://review.openstack.org/changes/?q=%s&"
"o=MESSAGES" % search)
"o=MESSAGES&o=DETAILED_ACCOUNTS" % search)
r = requests.get(query)
try:
changes = json.loads(r.text[4:])
except ValueError:
print "query: '%s' failed with:\n%s" % (query, r.text)
sys.exit(1)
return []
comments = []
for change in changes: