summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2019-12-06 20:59:06 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2019-12-06 20:59:06 +0100
commit60bc6236836dfa518363db343c3fbe83c5b6069f (patch)
tree3a0c92af99c252b1a0637b2559c0a46b0b35a773
parent535ee82e93cd0b8bc55b44a239351851bb18a441 (diff)
login: Add missing commit when updating session
-rw-r--r--fbin/login.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/fbin/login.py b/fbin/login.py
index 7647e13..aa3a399 100644
--- a/fbin/login.py
+++ b/fbin/login.py
@@ -40,6 +40,7 @@ class User:
self.user_session.refresh_token = token['refresh_token']
self.user_session.updated = datetime.datetime.utcnow()
sess.add(self.user_session)
+ sess.commit()
return True
@property