From 89e5d579262260163a8369fe1436b3b7989f93b1 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 8 Nov 2023 01:58:45 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)