From 8b9c1e3da414c2b1439541a109c12b215c651046 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Fri, 10 Nov 2017 14:29:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BC=D0=B5=D0=BB=D0=BE=D1=87=D1=8C=20=D0=BE?= =?UTF-8?q?=D0=B1=20=D0=B4=D0=BD=D1=8F=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4b36bd7..c88104c 100644 --- a/index.js +++ b/index.js @@ -442,7 +442,7 @@ io.on('connection', function(socket) } if(type == 'month') { - where = ' and `added` > DATE_SUB(NOW(), INTERVAL 7 DAY) ' + where = ' and `added` > DATE_SUB(NOW(), INTERVAL 30 DAY) ' } } mysqlPool.query(`SELECT * FROM torrents WHERE seeders > 0 and (contentCategory is null or contentCategory != 'xxx') ${where} ORDER BY seeders + leechers DESC LIMIT ${max}`, function (error, rows) {