From 8235adbecdf09ffe2e8b7a04a38d0be2d86fd5d4 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sun, 8 Apr 2018 01:07:41 +0100 Subject: Easier debugging and optimised imports Simply set FLASK_DEBUG=1 in your env to skip OAuth checks --- pysite/constants.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pysite/constants.py') diff --git a/pysite/constants.py b/pysite/constants.py index e300fdd3..e41b33bf 100644 --- a/pysite/constants.py +++ b/pysite/constants.py @@ -19,6 +19,8 @@ class ValidationTypes(Enum): params = "params" +DEBUG_MODE = "FLASK_DEBUG" in environ + OWNER_ROLE = 267627879762755584 ADMIN_ROLE = 267628507062992896 MODERATOR_ROLE = 267629731250176001 @@ -26,7 +28,7 @@ DEVOPS_ROLE = 409416496733880320 HELPER_ROLE = 267630620367257601 ALL_STAFF_ROLES = (OWNER_ROLE, ADMIN_ROLE, MODERATOR_ROLE, DEVOPS_ROLE) -EDITOR_ROLES = ALL_STAFF_ROLES + (HELPER_ROLE, ) +EDITOR_ROLES = ALL_STAFF_ROLES + (HELPER_ROLE,) SERVER_ID = 267624335836053506 -- cgit v1.2.3