From d7e0251d1fc776e3cb68a416b7c596eb1437faa0 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 11 Jul 2022 13:29:53 +0800 Subject: [PATCH] Update index.py --- plugins/mysql-apt/index.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/plugins/mysql-apt/index.py b/plugins/mysql-apt/index.py index efe174795..8be615cc4 100755 --- a/plugins/mysql-apt/index.py +++ b/plugins/mysql-apt/index.py @@ -63,11 +63,6 @@ def is_number(s): def getArgs(): args = sys.argv[2:] - # print(args) - - # if is_number(args): - # args = sys.argv[3:] - tmp = {} args_len = len(args) @@ -237,25 +232,6 @@ def setSkipGrantTables(v): return True -# def getErrorLog(): -# args = getArgs() -# path = getDataDir() -# filename = '' -# for n in os.listdir(path): -# if len(n) < 5: -# continue -# if n == 'error.log': -# filename = path + '/' + n -# break -# # print filename -# if not os.path.exists(filename): -# return mw.returnJson(False, '指定文件不存在!') -# if 'close' in args: -# mw.writeFile(filename, '') -# return mw.returnJson(False, '日志已清空') -# info = mw.getNumLines(filename, 18) -# return mw.returnJson(True, 'OK', info) - def getErrorLog(): file = getConf() content = mw.readFile(file)