mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(rpc): add "by" parameter - submitter
Add "by" parameter: submitter Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
parent
0583f30a53
commit
5484e68b42
3 changed files with 32 additions and 4 deletions
|
@ -269,7 +269,7 @@ class RPCSearch(PackageSearch):
|
|||
sanitization done for the PackageSearch `by` argument.
|
||||
"""
|
||||
|
||||
keys_removed = ("b", "N", "B", "k", "c", "M", "s")
|
||||
keys_removed = ("b", "N", "B", "k", "c", "M")
|
||||
|
||||
def __init__(self) -> "RPCSearch":
|
||||
super().__init__()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue