changeset 97dba6118e44 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=97dba6118e44
description:
        Count active session instead of only fresh one

        issue9580
        review325991002
diffstat:

 trytond/res/user.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 0d12d9b6e27b -r 97dba6118e44 trytond/res/user.py
--- a/trytond/res/user.py       Wed Sep 09 23:36:33 2020 +0200
+++ b/trytond/res/user.py       Sat Sep 12 10:00:03 2020 +0200
@@ -314,7 +314,7 @@
         Session = Pool().get('ir.session')
         now = datetime.datetime.now()
         timeout = datetime.timedelta(
-            seconds=config.getint('session', 'timeout'))
+            seconds=config.getint('session', 'max_age'))
         result = dict((u.id, 0) for u in users)
         with Transaction().set_user(0):
             for sub_ids in grouped_slice(users):

Reply via email to