Skip to content

Commit

Permalink
remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
matiu committed May 30, 2014
1 parent 4eb3175 commit 69f7ee6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions app/controllers/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ exports.list = function(req, res) {
var dateStr;
var todayStr = formatTimestamp(new Date());

console.log('[blocks.js.102]'); //TODO
if (req.query.blockDate) {
// TODO: Validate format yyyy-mm-dd
dateStr = req.query.blockDate;
Expand All @@ -110,18 +109,14 @@ console.log('[blocks.js.102]'); //TODO
isToday = true;
}
var gte = Math.round((new Date(dateStr)).getTime() / 1000);
console.log('[blocks.js.112:gte:]',gte); //TODO

//pagination
var lte = parseInt(req.query.startTimestamp) || gte + 86400;
console.log('[blocks.js.115:lte:]',lte); //TODO
var prev = formatTimestamp(new Date((gte - 86400) * 1000));
var next = lte ? formatTimestamp(new Date(lte * 1000)) :null;
console.log('[blocks.js.116:next:]',next, lte); //TODO
var limit = parseInt(req.query.limit || DFLT_LIMIT) + 1;
var more;

console.log('[blocks.js.119]'); //TODO
bdb.getBlocksByDate(gte, lte, limit, function(err, blockList) {

if (err) {
Expand Down
1 change: 0 additions & 1 deletion lib/BlockDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ BlockDb.prototype.getBlocksByDate = function(start_ts, end_ts, limit, cb) {
limit: limit,
reverse: 1,
};
console.log('[BlockDb.js.298:opts:]',opts); //TODO

db.createReadStream(opts)
.on('data', function (data) {
Expand Down

0 comments on commit 69f7ee6

Please sign in to comment.