aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/constants.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-04-08 01:07:41 +0100
committerGravatar Gareth Coles <[email protected]>2018-04-08 01:07:41 +0100
commit8235adbecdf09ffe2e8b7a04a38d0be2d86fd5d4 (patch)
treec126eef18d6bb10306d577bb5673a1f2a1bb2e88 /pysite/constants.py
parent[Wiki] Shorten edit/view links in sidebar (diff)
Easier debugging and optimised imports
Simply set FLASK_DEBUG=1 in your env to skip OAuth checks
Diffstat (limited to 'pysite/constants.py')
-rw-r--r--pysite/constants.py4
1 files changed, 3 insertions, 1 deletions
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