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/oauth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pysite/oauth.py') diff --git a/pysite/oauth.py b/pysite/oauth.py index 86a2024d..d025ea37 100644 --- a/pysite/oauth.py +++ b/pysite/oauth.py @@ -52,7 +52,7 @@ class OauthBackend(BaseBackend): "access_token": token_data["access_token"], "refresh_token": token_data["refresh_token"], "expires_at": token_data["expires_at"], - "snowflake": int(user_data["id"]) + "snowflake": user_data["id"] }, conflict="replace" ) @@ -60,7 +60,7 @@ class OauthBackend(BaseBackend): self.db.insert( "users", { - "user_id": int(user_data["id"]), + "user_id": user_data["id"], "username": user_data["username"], "discriminator": user_data["discriminator"], "email": user_data["email"] -- cgit v1.2.3