reset list of requests on each run

This commit is contained in:
Ludwig Nussel 2015-10-05 10:49:45 +02:00
parent 8758e1a9f7
commit 575cfeb9ed

View File

@ -270,6 +270,8 @@ class ReviewBot(object):
url = osc.core.makeurl(self.apiurl, ('search', 'request'), "match=state/@name='review'+and+review[%s]&withhistory=1"%review)
root = ET.parse(osc.core.http_GET(url)).getroot()
self.requests = []
for request in root.findall('request'):
req = osc.core.Request()
req.read(request)