fix trello integration and make minor changes to courseware.json

This commit is contained in:
Michael Q Larson
2015-02-12 22:54:45 -08:00
parent f8f0c3454a
commit 43da6d16ff
2 changed files with 20 additions and 19 deletions

View File

@@ -123,7 +123,7 @@ module.exports = {
var daysRunning = Math.ceil(timeDiff / (1000 * 3600 * 24));
client.get('https://trello.com/1/boards/BA3xVpz9/cards?key=' + secrets.trello.key, function(trello, res2) {
client.get('https://www.googleapis.com/blogger/v3/blogs/2421288658305323950/posts?key=' + secrets.blogger.key, function(blogger, res3) {
var nonprofitProjects = trello.length || 15;
var nonprofitProjects = (JSON.parse(trello)).length || 27;
var blog = JSON.parse(blogger);
User.count({'points': {'$gt': 2}}, function (err, c3) {
if (err) {