From ffb1b46c1d58b3b4d669b5029a661e88b574151d Mon Sep 17 00:00:00 2001 From: JabLuszko Date: Fri, 20 Sep 2024 02:03:39 +0200 Subject: [PATCH] Update MadApkEndpoint.py --- mapadroid/madmin/endpoints/api/apks/MadApkEndpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapadroid/madmin/endpoints/api/apks/MadApkEndpoint.py b/mapadroid/madmin/endpoints/api/apks/MadApkEndpoint.py index e85ef061e..9740d5f1b 100644 --- a/mapadroid/madmin/endpoints/api/apks/MadApkEndpoint.py +++ b/mapadroid/madmin/endpoints/api/apks/MadApkEndpoint.py @@ -38,7 +38,7 @@ async def get(self): except KeyError: return await self._json_response(data=data[apk_type]) - def allowed_file(filename): + def allowed_file(self, filename): ALLOWED_EXTENSIONS = set(['apk', 'apkm', 'zip']) return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS