This commit is contained in:
Leonel Câmara
2017-07-14 20:17:30 +01:00
parent 113df51ef9
commit b7b8a009f2
5 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ class AuthAPI(object):
if auth.last_visit and auth.last_visit + delta > now:
self.user = auth.user
# this is a trick to speed up sessions to avoid many writes
if (now - auth.last_visit).seconds > (auth.expiration / 10):
if (now - auth.last_visit).seconds > (auth.expiration // 10):
auth.last_visit = now
else:
self.user = None