From: Michael Tremer Date: Thu, 9 Mar 2023 14:39:24 +0000 (+0000) Subject: hub: Pass uploaded packages to the backend X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73260fd58d346d0da18b63be2e5f66c190d320be;p=pbs.git hub: Pass uploaded packages to the backend Signed-off-by: Michael Tremer --- diff --git a/src/hub/jobs.py b/src/hub/jobs.py index d9cdca37..50e250e7 100644 --- a/src/hub/jobs.py +++ b/src/hub/jobs.py @@ -94,9 +94,13 @@ class FinishedHandler(BaseHandler): # Fetch the log logfile = self.get_argument_upload("log") + # Fetch the packages + packages = self.get_argument_uploads("packages") + with self.db.transaction(): # Mark the job as finished - await job.finished(success=success, logfile=logfile) + await job.finished(success=success, + logfile=logfile, packages=packages) # Delete the logfile await logfile.delete()