mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-09-12 12:37:39 +02:00
update to 6.8.27
This commit is contained in:
+18
-14
@@ -48,21 +48,25 @@ class panelWarning:
|
||||
}
|
||||
result_file = self.__result + '/' + m_name + '.pl'
|
||||
|
||||
not_force = True
|
||||
if 'force' in args:
|
||||
not_force = m_info['ignore']
|
||||
# not_force = True
|
||||
# if 'force' in args:
|
||||
# not_force = m_info['ignore']
|
||||
|
||||
if os.path.exists(result_file) and not_force:
|
||||
m_info['status'],m_info['msg'],m_info['check_time'],m_info['taking'] = json.loads(public.readFile(result_file))
|
||||
else:
|
||||
try:
|
||||
s_time = time.time()
|
||||
m_info['status'],m_info['msg'] = p[m_name].check_run()
|
||||
m_info['taking'] = round(time.time() - s_time,6)
|
||||
m_info['check_time'] = int(time.time())
|
||||
public.writeFile(result_file,json.dumps([m_info['status'],m_info['msg'],m_info['check_time'],m_info['taking']],))
|
||||
except:
|
||||
continue
|
||||
# if os.path.exists(result_file) and not_force:
|
||||
# try:
|
||||
# m_info['status'],m_info['msg'],m_info['check_time'],m_info['taking'] = json.loads(public.readFile(result_file))
|
||||
# except:
|
||||
# if os.path.exists(result_file): os.remove(result_file)
|
||||
# continue
|
||||
# else:
|
||||
try:
|
||||
s_time = time.time()
|
||||
m_info['status'],m_info['msg'] = p[m_name].check_run()
|
||||
m_info['taking'] = round(time.time() - s_time,6)
|
||||
m_info['check_time'] = int(time.time())
|
||||
public.writeFile(result_file,json.dumps([m_info['status'],m_info['msg'],m_info['check_time'],m_info['taking']],))
|
||||
except:
|
||||
continue
|
||||
|
||||
|
||||
if m_info['ignore']:
|
||||
|
||||
Reference in New Issue
Block a user