From 3afde01f936bb143c58c38173528dc4f8e5c1011 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 8 Aug 2023 16:07:44 +0800 Subject: [PATCH] Update index.py --- plugins/mysql-apt/index.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/mysql-apt/index.py b/plugins/mysql-apt/index.py index d1a7b867f..c23f20bb7 100755 --- a/plugins/mysql-apt/index.py +++ b/plugins/mysql-apt/index.py @@ -2632,12 +2632,12 @@ def fullSync(version=''): if not data[0]: return data[1] - status_file = '/tmp/db_async_status.txt' + status_file = asyncTmpfile() if args['begin'] == '1': - cmd = 'cd ' + mw.getRunDir() + ' && python3 ' + \ - getPluginDir() + \ - '/index.py do_full_sync {"db":"' + args['db'] + '"} &' - print(cmd) + cmd = 'cd ' + mw.getRunDir() + ' && python3 ' + getPluginDir() + \ + '/index.py do_full_sync {"db":"' + \ + args['db'] + '","sign":"' + sign + '"} &' + # print(cmd) mw.execShell(cmd) return json.dumps({'code': 0, 'msg': '同步数据中!', 'progress': 0})