From: Michael Tremer Date: Wed, 22 Jan 2025 18:00:30 +0000 (+0000) Subject: builds: Correctly open a transaction X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc8fb02e2da16ffcfbcc98cd5494801faa560fcb;p=pbs.git builds: Correctly open a transaction Signed-off-by: Michael Tremer --- diff --git a/src/web/builds.py b/src/web/builds.py index e9ce5e97..e8c0822f 100644 --- a/src/web/builds.py +++ b/src/web/builds.py @@ -29,7 +29,7 @@ class APIv1IndexHandler(base.APIMixin, base.BaseHandler): # Did the uploader request to disable test builds? disable_test_builds = self.get_argument_bool("disable_test_builds") - with self.db.transaction(): + async with await self.db.transaction(): # Import the package try: package = await self.backend.packages.create(upload)