mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: include package data without "Last Packager"
Data for packages that do not have a "Last Packager" (e.g. because the user account was deleted) should still be available from the /rpc and metadata archives. Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
parent
8d2e176c2f
commit
0c5b4721d6
8 changed files with 11 additions and 45 deletions
|
@ -412,12 +412,7 @@ class RPC:
|
|||
packages = (
|
||||
db.query(models.Package.Name)
|
||||
.join(models.PackageBase)
|
||||
.filter(
|
||||
and_(
|
||||
models.PackageBase.PackagerUID.isnot(None),
|
||||
models.Package.Name.like(f"{arg}%"),
|
||||
)
|
||||
)
|
||||
.filter(models.Package.Name.like(f"{arg}%"))
|
||||
.order_by(models.Package.Name.asc())
|
||||
.limit(20)
|
||||
)
|
||||
|
@ -430,12 +425,7 @@ class RPC:
|
|||
arg = args[0]
|
||||
packages = (
|
||||
db.query(models.PackageBase.Name)
|
||||
.filter(
|
||||
and_(
|
||||
models.PackageBase.PackagerUID.isnot(None),
|
||||
models.PackageBase.Name.like(f"{arg}%"),
|
||||
)
|
||||
)
|
||||
.filter(models.PackageBase.Name.like(f"{arg}%"))
|
||||
.order_by(models.PackageBase.Name.asc())
|
||||
.limit(20)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue