Skip to content

Commit

Permalink
pre-release bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
czarlos committed Sep 14, 2014
1 parent 773e885 commit 8137ef1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
1 change: 0 additions & 1 deletion lib/request_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ var createRequest = function (args, callback, myKeys, base, specific, keyName) {

var path = base.concat(specific, constants.D, format, constants.Q, query, constants.API_KEY,
constants.E, key);
console.log(path);
get(path, callback, args);
}

Expand Down
5 changes: 1 addition & 4 deletions nyt.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var critics = require('./services/movie_reviews/critics');
var listings = require('./services/real_estate/listings');
var sales = require('./services/real_estate/sales');


function nyt (keys) {
var myKeys = keys;

Expand All @@ -37,8 +38,6 @@ function nyt (keys) {
votes : new votes (myKeys)
};

//new congress (myKeys);

this.bestSellers = new best_sellers (myKeys);

this.community = new community (myKeys);
Expand All @@ -51,8 +50,6 @@ function nyt (keys) {

this.mostPopular = new most_popular (myKeys);

this.movieReviews = new movie_reviews (myKeys);

this.movieReviews = {
reviews : new reviews (myKeys),
critics : new critics (myKeys)
Expand Down
10 changes: 5 additions & 5 deletions services/semantic.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ function semantic (keys) {
semantic.prototype.name = function (args, callback) {
var concept_type = response_lib.checkField(args['concept-type'], 'nytd_geo');
var specific = reql.buildPath('name', concept_type, args['specific-concept']);
reql.createRequest(args, callback, myKeys, base, specific, keyName);
reql.createRequest(args, callback, this.myKeys, base, specific, keyName);
}

semantic.prototype.uri = function (args, callback) {
var specific = reql.buildPath('uri', args['concept-uri']);
reql.createRequest(args, callback, myKeys, base, specific, keyName);
reql.createRequest(args, callback, this.myKeys, base, specific, keyName);
}

semantic.prototype.article = function (args, callback) {
var specific = reql.buildPath('article', args['article-uri']);
reql.createRequest(args, callback, myKeys, base, specific, keyName);
reql.createRequest(args, callback, this.myKeys, base, specific, keyName);
}

semantic.prototype.search = function (args, callback) {
var specific = reql.buildPath('search');
reql.createRequest(args, callback, myKeys, base, specific, keyName);
reql.createRequest(args, callback, this.myKeys, base, specific, keyName);
}

module.exports = semantic;
module.exports = semantic;
6 changes: 3 additions & 3 deletions services/timestags.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ timestags.prototype.search = function (args, callback, myKeys) {

var query = response_lib.checkQuery(args);
var path = '/'.concat('svc/', 'suggest/v1/timestags?',
query, 'api-key=', myKeys['timestags']);
console.log(path);
query, 'api-key=', this.myKeys['timestags']);
reql.get(path, callback, args);
}
console.log("THIS");
};

module.exports = timestags;

0 comments on commit 8137ef1

Please sign in to comment.