Skip to content

Commit

Permalink
Tweets feed
Browse files Browse the repository at this point in the history
  • Loading branch information
pillows committed Nov 10, 2013
1 parent edf446b commit 721b96a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion routes/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ exports.index = function(req, res){
data.tweets = contents;

callbackCounter++;

console.log(data.tweets);
if (callbackCounter == 4) {
res.render('snapshot', {
data: data,
Expand Down
2 changes: 1 addition & 1 deletion stocktwits.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exports.get_tweets = function (symbol, fn){
tweets.push(message);
});

return fn(null, {tweets: tweets});
return fn(null, tweets);
}
});
};
Expand Down
2 changes: 1 addition & 1 deletion views/snapshot.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h1>{{ pagename|title }}</h1>
{% for tweet in data.tweets %}
<table>
<tr>
<td class="padded-row"><span style="color: #16a085;" class="fui-document"></span></td>
<td class="padded-row"><span style="color: #16a085;" class="fui-twitter"></span></td>
<td class="padded-row">{{tweet.body}}</td>
</table>
{% endfor %}
Expand Down

0 comments on commit 721b96a

Please sign in to comment.