aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/constants.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-04-10 22:59:29 +0100
committerGravatar Gareth Coles <[email protected]>2018-04-10 22:59:29 +0100
commitef774acc05b272da2e3a3e8c6d4946647babda55 (patch)
tree6a81048f5f790b7689af05b8575db72dd004fd89 /pysite/constants.py
parentMerge remote-tracking branch 'origin/master' (diff)
Snowflakes should be handled as strings
Diffstat (limited to 'pysite/constants.py')
-rw-r--r--pysite/constants.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/pysite/constants.py b/pysite/constants.py
index 71335e5e..737f3a7a 100644
--- a/pysite/constants.py
+++ b/pysite/constants.py
@@ -21,12 +21,14 @@ class ValidationTypes(Enum):
DEBUG_MODE = "FLASK_DEBUG" in environ
-OWNER_ROLE = 267627879762755584
-ADMIN_ROLE = 267628507062992896
-MODERATOR_ROLE = 267629731250176001
-DEVOPS_ROLE = 409416496733880320
-HELPER_ROLE = 267630620367257601
-CONTRIB_ROLE = 295488872404484098
+# All snowflakes should be strings as RethinkDB rounds them as ints
+
+OWNER_ROLE = "267627879762755584"
+ADMIN_ROLE = "267628507062992896"
+MODERATOR_ROLE = "267629731250176001"
+DEVOPS_ROLE = "409416496733880320"
+HELPER_ROLE = "267630620367257601"
+CONTRIB_ROLE = "295488872404484098"
ALL_STAFF_ROLES = (OWNER_ROLE, ADMIN_ROLE, MODERATOR_ROLE, DEVOPS_ROLE)
EDITOR_ROLES = ALL_STAFF_ROLES + (HELPER_ROLE, CONTRIB_ROLE)