From dd97f2f6c696e2eeba089e1b17d97856e2437cd5 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Tue, 12 Feb 2019 12:54:43 +0100 Subject: [PATCH] Fix misc related query --- misc/testing/DB/reset_postprocessing.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/testing/DB/reset_postprocessing.php b/misc/testing/DB/reset_postprocessing.php index 73f37add6..7191a473c 100755 --- a/misc/testing/DB/reset_postprocessing.php +++ b/misc/testing/DB/reset_postprocessing.php @@ -156,13 +156,13 @@ if (isset($argv[1]) && ($argv[1] === 'misc' || $argv[1] === 'all')) { $ran = true; if (isset($argv[2]) && $argv[2] === 'true') { $colorCli->header('Resetting all Additional postprocessing'); - $where = ' (WHERE (haspreview != -1 AND haspreview != 0) OR (passwordstatus != -1 AND passwordstatus != 0) OR jpgstatus != 0 OR videostatus != 0 OR audiostatus != 0)'; + $where = ' WHERE ((haspreview != -1 AND haspreview != 0) OR (passwordstatus != -1 AND passwordstatus != 0) OR jpgstatus != 0 OR videostatus != 0 OR audiostatus != 0)'; } else { $colorCli->header('Resetting all failed Additional postprocessing'); $where = ' WHERE ((haspreview < -1 OR haspreview = 0) OR (passwordstatus < -1 OR passwordstatus = 0) OR jpgstatus < 0 OR videostatus < 0 OR audiostatus < 0)'; } - $where .= ' AND categories_id IN (10, 20)'; + $where .= ' AND categories_id IN ('.Category::OTHER_MISC.','.Category::OTHER_HASHED.')'; $colorCli->primary('SELECT id FROM releases'.$where); $qry = DB::select('SELECT id FROM releases'.$where);