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:
parent
7481112018
commit
004ca3cafe
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user