mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: set RequestTS when autogenerating requests
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
040c9bc3e6
commit
e3864d4b7c
1 changed files with 2 additions and 0 deletions
|
@ -201,9 +201,11 @@ def handle_request(request: Request, reqtype_id: int,
|
|||
# This is done to increase tracking of actions occurring
|
||||
# through the website.
|
||||
if not to_accept:
|
||||
utcnow = time.utcnow()
|
||||
with db.begin():
|
||||
pkgreq = db.create(PackageRequest,
|
||||
ReqTypeID=reqtype_id,
|
||||
RequestTS=utcnow,
|
||||
User=request.user,
|
||||
PackageBase=pkgbase,
|
||||
PackageBaseName=pkgbase.Name,
|
||||
|
|
Loading…
Add table
Reference in a new issue