diff options
Diffstat (limited to 'pysite/views')
-rw-r--r-- | pysite/views/api/bot/clean.py | 2 | ||||
-rw-r--r-- | pysite/views/main/bot/cleanlog.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pysite/views/api/bot/clean.py b/pysite/views/api/bot/clean.py index 2ee3f62d..82d1e735 100644 --- a/pysite/views/api/bot/clean.py +++ b/pysite/views/api/bot/clean.py @@ -12,7 +12,7 @@ POST_SCHEMA = Schema({ "author": str, "user_id": str, "content": str, - "role": str, + "role_id": str, "timestamp": str, "embeds": object, "attachments": [str], diff --git a/pysite/views/main/bot/cleanlog.py b/pysite/views/main/bot/cleanlog.py index 1c90dc0b..9c719b3e 100644 --- a/pysite/views/main/bot/cleanlog.py +++ b/pysite/views/main/bot/cleanlog.py @@ -1,7 +1,7 @@ import logging from pysite.base_route import RouteView -from pysite.constants import ALL_STAFF_ROLES, ROLE_COLORS +from pysite.constants import ALL_STAFF_ROLES, DEVELOPERS_ROLE, ROLE_COLORS from pysite.decorators import require_roles from pysite.mixins import DBMixin, OAuthMixin @@ -30,6 +30,6 @@ class CleanLogView(RouteView, DBMixin, OAuthMixin): messages = data["log_data"] for message in messages: - message['color'] = ROLE_COLORS.get(message['role'], ROLE_COLORS['developers']) + message['color'] = ROLE_COLORS.get(message['role_id'], ROLE_COLORS[DEVELOPERS_ROLE]) return self.render(self.template, messages=messages) |