From 16e583179c5f10020212c13a1d5678f0c05c0d2d Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 11 Mar 2019 02:12:09 -0300 Subject: [PATCH] schemas: fix coerce - run: change features_admin base to /admin/guilds --- litecord/schemas.py | 4 +++- run.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/litecord/schemas.py b/litecord/schemas.py index a746bfe..63c2c92 100644 --- a/litecord/schemas.py +++ b/litecord/schemas.py @@ -659,6 +659,8 @@ GET_MENTIONS = { FEATURES = { 'features': { 'type': 'list', 'required': True, - 'schema': {'coerce': Feature} + + # using Feature doesn't seem to work with a "not callable" error. + 'schema': {'coerce': lambda x: Feature(x)} } } diff --git a/run.py b/run.py index 8441f28..15ce2b4 100644 --- a/run.py +++ b/run.py @@ -145,7 +145,7 @@ def set_blueprints(app_): static: -1, voice_admin: '/admin/voice', - features_admin: '/admin/features', + features_admin: '/admin/guilds', guilds_admin: '/admin/guilds' }