schemas: fix coerce

- run: change features_admin base to /admin/guilds
This commit is contained in:
Luna 2019-03-11 02:12:09 -03:00
parent 4bb3cad43e
commit 16e583179c
2 changed files with 4 additions and 2 deletions

View File

@ -659,6 +659,8 @@ GET_MENTIONS = {
FEATURES = { FEATURES = {
'features': { 'features': {
'type': 'list', 'required': True, '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)}
} }
} }

2
run.py
View File

@ -145,7 +145,7 @@ def set_blueprints(app_):
static: -1, static: -1,
voice_admin: '/admin/voice', voice_admin: '/admin/voice',
features_admin: '/admin/features', features_admin: '/admin/guilds',
guilds_admin: '/admin/guilds' guilds_admin: '/admin/guilds'
} }