MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / GetSystemVersion

Method GetSystemVersion

class/system.py:307–314  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

305 return public.xss_version(public.GetConfigValue('title'))
306
307 def GetSystemVersion(self):
308 # 取操作系统版本
309 key = 'sys_version'
310 version = cache.get(key)
311 if version: return version
312 version = public.get_os_version()
313 cache.set(key, version, 600)
314 return version
315
316 def GetBootTime(self):
317 # 取系统启动时间

Callers 6

GetSystemTotalMethod · 0.95
GetAllInfoMethod · 0.95
GetNetWorkMethod · 0.95
upgrade_panelMethod · 0.95
UpdatePanelMethod · 0.80
submit_errorFunction · 0.80

Calls 3

get_os_versionMethod · 0.80
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected