From: Michael Tremer Date: Wed, 22 Jan 2025 14:54:04 +0000 (+0000) Subject: uploads: Fix cleanup X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f201b888e36e8836d7c865284e0373e3433609a7;p=pbs.git uploads: Fix cleanup Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/uploads.py b/src/buildservice/uploads.py index b19afa2f..9b571d1b 100644 --- a/src/buildservice/uploads.py +++ b/src/buildservice/uploads.py @@ -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()