diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 6767a0d43..b4c7a0ff9 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -365,7 +365,7 @@ def binLogList(): t['time'] = mw.getDataFromInt(os.path.getctime(abspath)) log_bin_l.append(t) - sorted(log_bin_l, key=lambda x: x['time'], reverse=True) + log_bin_l = sorted(log_bin_l, key=lambda x: x['time'], reverse=True) # print(log_bin_l) # print(data_dir, log_bin_name)