Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

examples file started.

  • Loading branch information...
commit d926761cdc565cea0e58b1ff00f692f71727a420 1 parent 3f9b36a
@akavlie authored
Showing with 11 additions and 2 deletions.
  1. +6 −2 controllers/AnalysisController.js
  2. +5 −0 test/examples.txt
View
8 controllers/AnalysisController.js
@@ -47,13 +47,17 @@ exports.controller = function (req, res) {
var item = items.shift();
console.log("Analyzing item: " + item.message);
//item.ratings = ratings;
+ console.log(item);
item.analyzed_at = new Date();
item.save(function (err) {
+ console.log('Item saved!');
+ console.log(err);
item.analyze(function (err, _item) {
- //console.log("Done analyzing "+_item.topics.length);
+ console.log(err);
+ console.log("Done analyzing " + _item.topics.length);
//item.commit("ratings");
_item.save(function (err) {
- // err?
+ console.log(err);
});
analyze_next();
});
View
5 test/examples.txt
@@ -0,0 +1,5 @@
+Example Tweets
+--------------
+
+Proud to announce our social network: http://www.cowerful.com/ - A resource for bovine enthusiasts looking to make moo friends.
+

0 comments on commit d926761

Please sign in to comment.
Something went wrong with that request. Please try again.