Verified Commit e3864d4b authored by Kevin Morris's avatar Kevin Morris
Browse files

fix: set RequestTS when autogenerating requests



Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent 040c9bc3
...@@ -201,9 +201,11 @@ def handle_request(request: Request, reqtype_id: int, ...@@ -201,9 +201,11 @@ def handle_request(request: Request, reqtype_id: int,
# This is done to increase tracking of actions occurring # This is done to increase tracking of actions occurring
# through the website. # through the website.
if not to_accept: if not to_accept:
utcnow = time.utcnow()
with db.begin(): with db.begin():
pkgreq = db.create(PackageRequest, pkgreq = db.create(PackageRequest,
ReqTypeID=reqtype_id, ReqTypeID=reqtype_id,
RequestTS=utcnow,
User=request.user, User=request.user,
PackageBase=pkgbase, PackageBase=pkgbase,
PackageBaseName=pkgbase.Name, PackageBaseName=pkgbase.Name,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment