diff --git a/bounce/server/api/clubs.py b/bounce/server/api/clubs.py index a5e6832..be97d84 100644 --- a/bounce/server/api/clubs.py +++ b/bounce/server/api/clubs.py @@ -150,6 +150,7 @@ class ClubImagesEndpoint(Endpoint): __uri__ = '/clubs//images/' + # pylint: disable=unused-argument async def get(self, session, _, name, image_name): """ Handles a GET /clubs//images/ request @@ -165,6 +166,8 @@ async def get(self, session, _, name, image_name): except FileNotFoundError: raise APIError('No such image', status=404) + # pylint: enable=unused-argument + # @verify_token() async def put(self, session, request, name, image_name): """ diff --git a/bounce/server/api/users.py b/bounce/server/api/users.py index 8ce400b..3dffe19 100644 --- a/bounce/server/api/users.py +++ b/bounce/server/api/users.py @@ -134,6 +134,7 @@ class UserImagesEndpoint(Endpoint): __uri__ = '/users//images/' + # pylint: disable=unused-argument async def get(self, session, _, user_id, image_name): """ Handles a GET /users//images/ request @@ -148,6 +149,8 @@ async def get(self, session, _, user_id, image_name): except FileNotFoundError: raise APIError('No such image', status=404) + # pylint: enable=unused-argument + @verify_token() async def put(self, session,