mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-05 02:56:17 +01:00
* avoid hardcoded list request states for "all" case
This commit is contained in:
parent
86c110f1e9
commit
17508f3d83
@ -2330,8 +2330,7 @@ def get_request_list(apiurl, project, package, req_who='', req_state=('new',), r
|
||||
matches = []
|
||||
match = ''
|
||||
m = ''
|
||||
if "all" in req_state:
|
||||
req_state=('new', 'accepted', 'declined', 'revoked', 'rejected')
|
||||
if not "all" in req_state:
|
||||
for state in req_state:
|
||||
if len(m): m += '%20or%20'
|
||||
m += 'state/@name=\'%s\'' % quote_plus(state)
|
||||
|
Loading…
Reference in New Issue
Block a user