From 5b82ac33be1faebf913fd16717f6afb46efb80de Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Wed, 2 Dec 2020 17:58:07 +0100 Subject: [PATCH] [scraper] exclude nyaasi torrents from seeders query --- scraper/lib/repository.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper/lib/repository.js b/scraper/lib/repository.js index 0831e68..b6daa63 100644 --- a/scraper/lib/repository.js +++ b/scraper/lib/repository.js @@ -186,7 +186,7 @@ function getTorrentsWithoutSize() { function getUpdateSeedersTorrents() { const until = moment().subtract(7, 'days').format('YYYY-MM-DD'); return Torrent.findAll({ - where: literal(`torrent."updatedAt" < \'${until}\'`), + where: literal(`torrent."updatedAt" < \'${until}\' and torrent."provider" not in (\'NyaaSi\')`), limit: 100, order: [ ['seeders', 'DESC'],