]> git.ipfire.org Git - pbs.git/commitdiff
web: Make fetching multiple uploads async
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Feb 2025 14:07:07 +0000 (14:07 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Feb 2025 14:07:07 +0000 (14:07 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/base.py

index dd37dff75ece241742308c94e6a2c6e925f7c2c2..d064671f2996546853e6bec428bf0d5057d50980 100644 (file)
@@ -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)