From ef774acc05b272da2e3a3e8c6d4946647babda55 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Tue, 10 Apr 2018 22:59:29 +0100 Subject: Snowflakes should be handled as strings --- pysite/constants.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'pysite/constants.py') 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) -- cgit v1.2.3