aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-03-30 15:59:48 +0100
committerGravatar Gareth Coles <[email protected]>2018-03-30 15:59:48 +0100
commitb8f0714d514f55a233014db06ed121ffcdbe2527 (patch)
treef9bc53acbf32929fc4a10d8078a09853e17bc760
parentAccept username/discriminator from the bot and remove it from oauth (diff)
Whoopsie
-rw-r--r--pysite/oauth.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pysite/oauth.py b/pysite/oauth.py
index 7a5764ac..b34be02a 100644
--- a/pysite/oauth.py
+++ b/pysite/oauth.py
@@ -59,7 +59,10 @@ class OauthBackend(BaseBackend):
self.db.insert(
"users",
- {"email": user_data["email"]},
+ {
+ "id": int(user_data["id"]),
+ "email": user_data["email"]
+ },
conflict="update"
)