mirror of https://gitlab.com/litecord/litecord.git
update to quart 0.15.1
This commit is contained in:
parent
ccbc0f21f1
commit
111444c545
2
Pipfile
2
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 = "*"
|
||||
|
|
|
|||
|
|
@ -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": [
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue