From 111444c545efc74cbf4c84c68daccc67ad1070a6 Mon Sep 17 00:00:00 2001 From: Luna Date: Fri, 25 Jun 2021 15:42:46 -0300 Subject: [PATCH] update to quart 0.15.1 --- Pipfile | 2 +- Pipfile.lock | 8 ++++---- litecord/blueprints/admin_api/instance_invites.py | 4 ++-- litecord/blueprints/admin_api/users.py | 4 ++-- litecord/blueprints/guild/emoji.py | 2 +- litecord/blueprints/guilds.py | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Pipfile b/Pipfile index bdde937..1514232 100644 --- a/Pipfile +++ b/Pipfile @@ -11,7 +11,7 @@ websockets = "==8.1" Earl-ETF = "==2.1.2" logbook = "==1.5.3" Cerberus = "==1.3.4" -quart = "==0.12.0" +quart = "==0.15.1" pillow = "*" aiohttp = "==3.7.4" zstandard = "*" diff --git a/Pipfile.lock b/Pipfile.lock index 93ac168..9f5ff09 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "78ebc128bf34252df0c53f6a6ee27e3c080f4bbd313832252655b00ac08b4571" + "sha256": "e341f35e6c18541b98b9c5e461d25875be7ccdbd6c4f98a520b1d22b817e9837" }, "pipfile-spec": 6, "requires": { @@ -431,11 +431,11 @@ }, "quart": { "hashes": [ - "sha256:99a65bc90d0e1260c9cc9a7dd0b8523eb6cd9f4ec146e771e98a55ee180ae6c2", - "sha256:f706e6eff0ef756b88d9965359f7445c9c2773551dca822deb8c018c58c00902" + "sha256:f35134fb1d81af61624e6d89bca33cd611dcedce2dc4e291f527ab04395f4e1a", + "sha256:f80c91d1e0588662483e22dd9c368a5778886b62e128c5399d2cc1b1898482cf" ], "index": "pypi", - "version": "==0.12.0" + "version": "==0.15.1" }, "six": { "hashes": [ diff --git a/litecord/blueprints/admin_api/instance_invites.py b/litecord/blueprints/admin_api/instance_invites.py index 50bfee4..2a9540d 100644 --- a/litecord/blueprints/admin_api/instance_invites.py +++ b/litecord/blueprints/admin_api/instance_invites.py @@ -57,7 +57,7 @@ async def gen_inv(ctx) -> Optional[str]: return None -@bp.route("", methods=["GET"]) +@bp.route("", methods=["GET"], strict_slashes=False) async def _all_instance_invites(): await admin_check() @@ -76,7 +76,7 @@ async def _all_instance_invites(): return jsonify(rows) -@bp.route("", methods=["PUT"]) +@bp.route("", methods=["PUT"], strict_slashes=False) async def _create_invite(): await admin_check() diff --git a/litecord/blueprints/admin_api/users.py b/litecord/blueprints/admin_api/users.py index e0d1b74..d18cb76 100644 --- a/litecord/blueprints/admin_api/users.py +++ b/litecord/blueprints/admin_api/users.py @@ -35,7 +35,7 @@ from litecord.common.users import ( bp = Blueprint("users_admin", __name__) -@bp.route("", methods=["POST", "PUT"]) +@bp.route("", methods=["POST", "PUT"], strict_slashes=False) async def _create_user(): await admin_check() j = validate(await request.get_json(), USER_CREATE) @@ -52,7 +52,7 @@ def args_try(args: dict, typ, field: str, default): raise BadRequest(f"invalid {field} value") -@bp.route("", methods=["GET"]) +@bp.route("", methods=["GET"], strict_slashes=False) async def _search_users(): await admin_check() diff --git a/litecord/blueprints/guild/emoji.py b/litecord/blueprints/guild/emoji.py index 7012e24..1716af2 100644 --- a/litecord/blueprints/guild/emoji.py +++ b/litecord/blueprints/guild/emoji.py @@ -27,7 +27,7 @@ from litecord.types import KILOBYTES from litecord.images import parse_data_uri from litecord.errors import BadRequest -bp = Blueprint("guild.emoji", __name__) +bp = Blueprint("guild_emoji", __name__) async def _dispatch_emojis(guild_id): diff --git a/litecord/blueprints/guilds.py b/litecord/blueprints/guilds.py index 5d887d1..ff63520 100644 --- a/litecord/blueprints/guilds.py +++ b/litecord/blueprints/guilds.py @@ -112,7 +112,7 @@ async def put_guild_icon(guild_id: int, icon: Optional[str]): return await _general_guild_icon("guild", guild_id, icon, size=(128, 128)) -@bp.route("", methods=["POST"]) +@bp.route("", methods=["POST"], strict_slashes=False) async def create_guild(): """Create a new guild, assigning the user creating it as the owner and