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