1
0
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:
Vincent Untz
2009-05-03 08:57:29 +00:00
parent cf413bf953
commit 006eeb756b

View File

@@ -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)