Skip to content

Commit b838a14

Browse files
authored
fix: Session timeout setting (#3728)
1 parent 5ba725b commit b838a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/smartdoc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def get_db_setting(self) -> dict:
123123
}
124124

125125
def get_session_timeout(self):
126-
return datetime.timedelta(seconds=self.get('SESSION_TIMEOUT', 28800))
126+
return datetime.timedelta(seconds=int(self.get('SESSION_TIMEOUT', 60 * 60 * 2)))
127127

128128
def get_language_code(self):
129129
return self.get('LANGUAGE_CODE', 'zh-CN')

0 commit comments

Comments
 (0)