mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: Session timeout setting (#3728)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
This commit is contained in:
parent
5ba725ba18
commit
b838a14bd8
|
|
@ -123,7 +123,7 @@ class Config(dict):
|
|||
}
|
||||
|
||||
def get_session_timeout(self):
|
||||
return datetime.timedelta(seconds=self.get('SESSION_TIMEOUT', 28800))
|
||||
return datetime.timedelta(seconds=int(self.get('SESSION_TIMEOUT', 60 * 60 * 2)))
|
||||
|
||||
def get_language_code(self):
|
||||
return self.get('LANGUAGE_CODE', 'zh-CN')
|
||||
|
|
|
|||
Loading…
Reference in New Issue