]> git.ipfire.org Git - pbs.git/commitdiff
uploads: Fix cleanup
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 Jan 2025 14:54:04 +0000 (14:54 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 Jan 2025 14:54:04 +0000 (14:54 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/uploads.py

index b19afa2fb493ca5453b8543e2c5131d95d466093..9b571d1bee46514c4ad1811c74797cd698142303 100644 (file)
@@ -128,7 +128,7 @@ class Uploads(base.Object):
 
                # Delete them all
                async for upload in self.db.fetch(stmt):
-                       with self.db.transaction():
+                       async with await self.db.transaction():
                                await upload.delete()