From 9ecc3d9e7e27842506d2ff8f5c52bfd5f054bea7 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 8 Dec 2018 23:15:48 -0300 Subject: [PATCH] blueprints: fix register for attachments bp --- litecord/blueprints/__init__.py | 4 +++- litecord/blueprints/attachments.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/litecord/blueprints/__init__.py b/litecord/blueprints/__init__.py index 701bbd2..f43f9ca 100644 --- a/litecord/blueprints/__init__.py +++ b/litecord/blueprints/__init__.py @@ -31,6 +31,8 @@ from .dms import bp as dms from .icons import bp as icons from .nodeinfo import bp as nodeinfo from .static import bp as static +from .attachments import bp as attachments + __all__ = ['gateway', 'auth', 'users', 'guilds', 'channels', 'webhooks', 'science', 'voice', 'invites', 'relationships', - 'dms', 'icons', 'nodeinfo', 'static'] + 'dms', 'icons', 'nodeinfo', 'static', 'attachments'] diff --git a/litecord/blueprints/attachments.py b/litecord/blueprints/attachments.py index ce78ac5..07a5f7e 100644 --- a/litecord/blueprints/attachments.py +++ b/litecord/blueprints/attachments.py @@ -19,10 +19,10 @@ along with this program. If not, see . from quart import Blueprint -bp = Blueprint(__name__) +bp = Blueprint('attachments', __name__) @bp.route('/attachments' - '///.', + '///.', methods=['GET']) async def _get_attachment(channel_id: int, message_id: int, filename: str, ext: str):