diff options
author | 2018-04-10 22:59:29 +0100 | |
---|---|---|
committer | 2018-04-10 22:59:29 +0100 | |
commit | ef774acc05b272da2e3a3e8c6d4946647babda55 (patch) | |
tree | 6a81048f5f790b7689af05b8575db72dd004fd89 /pysite/constants.py | |
parent | Merge remote-tracking branch 'origin/master' (diff) |
Snowflakes should be handled as strings
Diffstat (limited to 'pysite/constants.py')
-rw-r--r-- | pysite/constants.py | 14 |
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) |