1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-12 08:56:13 +01:00

Merge pull request #1252 from dmach/fix-request-list-type

rq list: Fix passing values of the --type option
This commit is contained in:
Daniel Mach 2023-02-03 10:40:46 +01:00 committed by GitHub
commit e58d9737fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: