feat(rpc): add "by" parameter - submitter

Add "by" parameter: submitter

Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
moson-mo 2022-11-07 22:46:24 +01:00
parent 0583f30a53
commit 5484e68b42
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
3 changed files with 32 additions and 4 deletions

View file

@ -87,10 +87,11 @@ class RPC:
"conflicts",
"replaces",
"groups",
"submitter",
}
# A mapping of by aliases.
BY_ALIASES = {"name-desc": "nd", "name": "n", "maintainer": "m"}
BY_ALIASES = {"name-desc": "nd", "name": "n", "maintainer": "m", "submitter": "s"}
def __init__(self, version: int = 0, type: str = None) -> "RPC":
self.version = version