mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat: add field "Submitter" to metadata-archives
This commit is contained in:
parent
48e5dc6763
commit
333051ab1f
2 changed files with 12 additions and 1 deletions
|
@ -30,6 +30,7 @@ META_KEYS = [
|
|||
"Popularity",
|
||||
"OutOfDate",
|
||||
"Maintainer",
|
||||
"Submitter",
|
||||
"FirstSubmitted",
|
||||
"LastModified",
|
||||
"URLPath",
|
||||
|
@ -61,7 +62,12 @@ def packages(user: User) -> list[Package]:
|
|||
lic = db.create(License, Name="GPL")
|
||||
for i in range(5):
|
||||
# Create the package.
|
||||
pkgbase = db.create(PackageBase, Name=f"pkgbase_{i}", Packager=user)
|
||||
pkgbase = db.create(
|
||||
PackageBase,
|
||||
Name=f"pkgbase_{i}",
|
||||
Packager=user,
|
||||
Submitter=user,
|
||||
)
|
||||
pkg = db.create(Package, PackageBase=pkgbase, Name=f"pkg_{i}")
|
||||
|
||||
# Create some related records.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue