diff options
| author | 2018-03-30 15:56:49 +0100 | |
|---|---|---|
| committer | 2018-03-30 15:56:49 +0100 | |
| commit | 885e614723c7890f616e7288d8ae6f0b8c335b01 (patch) | |
| tree | a0e5b56316138a196ab86b42051a8abb7b36def4 /pysite/oauth.py | |
| parent | I'm assuming this is the last linting commit for now... (diff) | |
Accept username/discriminator from the bot and remove it from oauth
Diffstat (limited to '')
| -rw-r--r-- | pysite/oauth.py | 7 | 
1 files changed, 1 insertions, 6 deletions
| diff --git a/pysite/oauth.py b/pysite/oauth.py index ef86aa8a..7a5764ac 100644 --- a/pysite/oauth.py +++ b/pysite/oauth.py @@ -59,12 +59,7 @@ class OauthBackend(BaseBackend):          self.db.insert(              "users", -            { -                "user_id": int(user_data["id"]), -                "username": user_data["username"], -                "discriminator": user_data["discriminator"], -                "email": user_data["email"] -            }, +            {"email": user_data["email"]},              conflict="update"          ) | 
