From 060e91907d1c113dbbb8a85b10e5ddeb976fcada Mon Sep 17 00:00:00 2001 From: Luna Date: Fri, 15 Mar 2019 01:26:27 -0300 Subject: [PATCH] icons: properly remove unused vars --- litecord/blueprints/icons.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/litecord/blueprints/icons.py b/litecord/blueprints/icons.py index 69c1126..106e80e 100644 --- a/litecord/blueprints/icons.py +++ b/litecord/blueprints/icons.py @@ -18,7 +18,7 @@ along with this program. If not, see . """ from os.path import splitext -from quart import Blueprint, current_app as app, send_file, request +from quart import Blueprint, current_app as app, send_file bp = Blueprint('images', __name__) @@ -60,10 +60,8 @@ async def _get_default_user_avatar(discrim: int): @bp.route('/avatars//') async def _get_user_avatar(user_id, avatar_file): - size_int = int(request.args.get('size', '1024')) avatar_hash, ext = splitext_(avatar_file) - return await send_icon( - 'user', user_id, avatar_hash, ext=ext) + return await send_icon('user', user_id, avatar_hash, ext=ext) # @bp.route('/app-icons//.')