Browse Source

perf: DEFAULT_PAGE_SIZE same as MAX_LIMIT_PER_PAGE

pull/14276/head
Bai 1 month ago committed by Bryan
parent
commit
bd56697d6d
  1. 1
      apps/jumpserver/conf.py
  2. 2
      apps/jumpserver/settings/custom.py

1
apps/jumpserver/conf.py

@ -659,7 +659,6 @@ class Config(dict):
# API 分页 # API 分页
'MAX_LIMIT_PER_PAGE': 10000, 'MAX_LIMIT_PER_PAGE': 10000,
'DEFAULT_PAGE_SIZE': None,
'LIMIT_SUPER_PRIV': False, 'LIMIT_SUPER_PRIV': False,

2
apps/jumpserver/settings/custom.py

@ -210,7 +210,7 @@ SESSION_RSA_PUBLIC_KEY_NAME = 'jms_public_key'
OPERATE_LOG_ELASTICSEARCH_CONFIG = CONFIG.OPERATE_LOG_ELASTICSEARCH_CONFIG OPERATE_LOG_ELASTICSEARCH_CONFIG = CONFIG.OPERATE_LOG_ELASTICSEARCH_CONFIG
MAX_LIMIT_PER_PAGE = CONFIG.MAX_LIMIT_PER_PAGE MAX_LIMIT_PER_PAGE = CONFIG.MAX_LIMIT_PER_PAGE
DEFAULT_PAGE_SIZE = CONFIG.DEFAULT_PAGE_SIZE DEFAULT_PAGE_SIZE = CONFIG.MAX_LIMIT_PER_PAGE
PERM_TREE_REGEN_INTERVAL = CONFIG.PERM_TREE_REGEN_INTERVAL PERM_TREE_REGEN_INTERVAL = CONFIG.PERM_TREE_REGEN_INTERVAL
# Magnus DB Port # Magnus DB Port

Loading…
Cancel
Save