Skip to content

Commit

Permalink
Update MadApkEndpoint.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JabLuszko authored Sep 20, 2024
1 parent 4119ae8 commit ffb1b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapadroid/madmin/endpoints/api/apks/MadApkEndpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ffb1b46

Please sign in to comment.