From: Michael Tremer Date: Tue, 4 Feb 2025 14:07:07 +0000 (+0000) Subject: web: Make fetching multiple uploads async X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b52906000ff371ce958d05bc77c7a0290473fec1;p=pbs.git web: Make fetching multiple uploads async Signed-off-by: Michael Tremer --- diff --git a/src/web/base.py b/src/web/base.py index dd37dff7..d064671f 100644 --- a/src/web/base.py +++ b/src/web/base.py @@ -647,14 +647,14 @@ class BaseHandler(tornado.web.RequestHandler): if uuid: return await self._get_upload(uuid) - def get_argument_uploads(self, *args, **kwargs): + async def get_argument_uploads(self, *args, **kwargs): """ Returns a list of uploads """ uuids = self.get_arguments(*args, **kwargs) # Return all uploads - return [self._get_upload(uuid) for uuid in uuids] + return [await self._get_upload(uuid) for uuid in uuids] async def get_argument_user(self, *args, **kwargs): name = self.get_argument(*args, **kwargs)