return only the needed data - seedlinux - web app for indexing opensource torre… | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit c5d709d763da6c0866e1dbabff3e601694b94be6 | |
parent a8c25b5d8129d22935b990b638d52e0a231b7f3e | |
Author: Jay Scott <[email protected]> | |
Date: Thu, 6 Jul 2017 23:01:50 +0100 | |
return only the needed data | |
Diffstat: | |
M bin/www | 4 +--- | |
M controllers/torrents_controller.js | 2 +- | |
M views/layout.pug | 4 ---- | |
3 files changed, 2 insertions(+), 8 deletions(-) | |
--- | |
diff --git a/bin/www b/bin/www | |
@@ -3,9 +3,7 @@ | |
/** | |
* Module dependencies. | |
*/ | |
-if(process.env.NODE_ENV === 'production') { | |
- require ('newrelic'); | |
-} | |
+ | |
var app = require('../app'); | |
var debug = require('debug'); | |
diff --git a/controllers/torrents_controller.js b/controllers/torrents_controll… | |
@@ -91,7 +91,7 @@ exports.index = function(req, res) { | |
async.parallel( | |
{ | |
torrent_data: function(callback) { | |
- Torrent.find({}, callback); | |
+ Torrent.find({},'hash name seeders leechers comment magneturi ', callb… | |
}, | |
torrent_seeds: function(callback) { | |
getCount(callback); | |
diff --git a/views/layout.pug b/views/layout.pug | |
@@ -6,10 +6,6 @@ html | |
title= title | |
link(rel='stylesheet', href='https://cdnjs.cloudflare.com/ajax/libs/semant… | |
link(rel='stylesheet', href='/stylesheets/style.css') | |
- script. | |
- window.NREUM||(NREUM={}),__nr_require=function(t,n,e){function r(e){if(!… | |
- ;NREUM.info={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",lice… | |
- | |
body | |
.ui.secondary.menu | |