mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 17:36:13 +01:00
rq list: Fix passing values of the --type option
This commit is contained in:
parent
b047154ee5
commit
4c7cdaec19
@ -2773,7 +2773,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
roles = ["creator"] if opts.mine else None
|
||||
results = get_request_collection(
|
||||
apiurl, project=project, package=package, user=who,
|
||||
states=state_list, types=opts.type, roles=roles)
|
||||
states=state_list, types=[opts.type], roles=roles)
|
||||
|
||||
# Check if project actually exists if result list is empty
|
||||
if not results:
|
||||
|
@ -4628,7 +4628,7 @@ def get_request_collection(
|
||||
package=None,
|
||||
states=None,
|
||||
review_states=None,
|
||||
types=None,
|
||||
types: List[str] = None,
|
||||
ids=None,
|
||||
withfullhistory=False
|
||||
):
|
||||
@ -4667,6 +4667,7 @@ def get_request_collection(
|
||||
query["review_states"] = ",".join(review_states)
|
||||
|
||||
if types:
|
||||
assert not isinstance(types, str)
|
||||
query["types"] = ",".join(types)
|
||||
|
||||
if ids:
|
||||
|
Loading…
Reference in New Issue
Block a user