stagingapi: project_status_requests() to extract all requests of type.
This commit is contained in:
parent
b998a136bf
commit
3505736fe0
@ -866,6 +866,14 @@ class StagingAPI(object):
|
||||
tobuild += int(repo['tobuild'])
|
||||
return final, tobuild
|
||||
|
||||
def project_status_requests(self, request_type):
|
||||
key = '{}_requests'.format(request_type)
|
||||
requests = []
|
||||
for status in self.project_status():
|
||||
for request in status[key]:
|
||||
requests.append(str(request['number']))
|
||||
return requests
|
||||
|
||||
def days_since_last_freeze(self, project):
|
||||
"""
|
||||
Checks the last update for the frozen links
|
||||
|
Loading…
x
Reference in New Issue
Block a user