1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 01:16:14 +01:00

rq list: Fix passing values of the --type option

This commit is contained in:
Daniel Mach 2023-02-03 09:57:51 +01:00
parent b047154ee5
commit 4c7cdaec19
2 changed files with 3 additions and 2 deletions

View File

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

View File

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