1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-14 09:36:21 +01:00

- speed up osc sr list

This commit is contained in:
Michael Schröder 2009-04-27 08:50:58 +00:00
parent 7481112018
commit 004ca3cafe

View File

@ -2055,6 +2055,8 @@ def get_submit_request_list(apiurl, project, package, req_state=('new')):
match = 'submit/target/@project=\'%s\'' % quote_plus(project)
if package:
match += '%20and%20' + 'submit/target/@package=\'%s\'' % quote_plus(package)
for state in req_state:
match += '%20and%20' + 'state/@name=\'%s\'' % quote_plus(state)
u = makeurl(apiurl, ['search', 'request'], ['match=%s' % match])
f = http_GET(u)