diff --git a/plugins/mariadb/index.py b/plugins/mariadb/index.py index 70982611e..2e0c7cbb9 100755 --- a/plugins/mariadb/index.py +++ b/plugins/mariadb/index.py @@ -2936,7 +2936,7 @@ def doFullSync(version=''): def doFullSyncUser(version=''): which_pv = mw.execShell('which pv') is_exist_pv = False - if not os.path.exists(which_pv[0]): + if os.path.exists(which_pv[0]): is_exist_pv = True diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 7f6facf38..31e28988d 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3390,7 +3390,7 @@ def doFullSyncUserImportContentForChannel(file, channel_name): def doFullSyncUser(version=''): which_pv = mw.execShell('which pv') is_exist_pv = False - if not os.path.exists(which_pv[0]): + if os.path.exists(which_pv[0]): is_exist_pv = True time_all_s = time.time()