mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-17 07:49:01 +00:00
perf: 修改 connection token
This commit is contained in:
@@ -344,7 +344,7 @@ def get_file_by_arch(dir, filename):
|
||||
return file_path
|
||||
|
||||
|
||||
def pretty_string(data: str, max_length=128, ellipsis_str='...'):
|
||||
def pretty_string(data, max_length=128, ellipsis_str='...'):
|
||||
"""
|
||||
params:
|
||||
data: abcdefgh
|
||||
@@ -353,6 +353,7 @@ def pretty_string(data: str, max_length=128, ellipsis_str='...'):
|
||||
return:
|
||||
ab...gh
|
||||
"""
|
||||
data = str(data)
|
||||
if len(data) < max_length:
|
||||
return data
|
||||
remain_length = max_length - len(ellipsis_str)
|
||||
|
3
apps/common/utils/geoip/GeoLite2-City.mmdb
Normal file
3
apps/common/utils/geoip/GeoLite2-City.mmdb
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:860b4d38beff81667c64da41c026a7dd28c3c93a28ae61fefaa7c26875f35638
|
||||
size 73906864
|
Reference in New Issue
Block a user