mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 01:46: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
|
roles = ["creator"] if opts.mine else None
|
||||||
results = get_request_collection(
|
results = get_request_collection(
|
||||||
apiurl, project=project, package=package, user=who,
|
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
|
# Check if project actually exists if result list is empty
|
||||||
if not results:
|
if not results:
|
||||||
|
@ -4628,7 +4628,7 @@ def get_request_collection(
|
|||||||
package=None,
|
package=None,
|
||||||
states=None,
|
states=None,
|
||||||
review_states=None,
|
review_states=None,
|
||||||
types=None,
|
types: List[str] = None,
|
||||||
ids=None,
|
ids=None,
|
||||||
withfullhistory=False
|
withfullhistory=False
|
||||||
):
|
):
|
||||||
@ -4667,6 +4667,7 @@ def get_request_collection(
|
|||||||
query["review_states"] = ",".join(review_states)
|
query["review_states"] = ",".join(review_states)
|
||||||
|
|
||||||
if types:
|
if types:
|
||||||
|
assert not isinstance(types, str)
|
||||||
query["types"] = ",".join(types)
|
query["types"] = ",".join(types)
|
||||||
|
|
||||||
if ids:
|
if ids:
|
||||||
|
Loading…
Reference in New Issue
Block a user