mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-05 20:58:42 +02:00
- fix default value for req_state in get_submit_request_list(): it's a list,
not a single string.
This commit is contained in:
@@ -2050,7 +2050,7 @@ def change_submit_request_state(apiurl, reqid, newstate, message=''):
|
||||
return f.read()
|
||||
|
||||
|
||||
def get_submit_request_list(apiurl, project, package, req_state=('new')):
|
||||
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)
|
||||
|
Reference in New Issue
Block a user