Fix building stackoverflow query
This commit is contained in:
@ -22,17 +22,17 @@ CodeOceanEditorFlowr = {
|
|||||||
dataType: "json",
|
dataType: "json",
|
||||||
url: flowrUrl,
|
url: flowrUrl,
|
||||||
data: {}
|
data: {}
|
||||||
}).then(function (queries) {
|
}).then(function (insights) {
|
||||||
var stackoverflowRequests = _.map(queries, function (index, query) {
|
var stackoverflowRequests = _.map(insights, function (insight) {
|
||||||
var queryParams = {
|
var queryParams = {
|
||||||
accepted: true,
|
accepted: true,
|
||||||
pagesize: 5,
|
pagesize: 3,
|
||||||
order: 'desc',
|
order: 'desc',
|
||||||
sort: 'relevance',
|
sort: 'relevance',
|
||||||
site: 'stackoverflow',
|
site: 'stackoverflow',
|
||||||
answers: 1,
|
answers: 1,
|
||||||
filter: '!23qca9v**HCO.ESF)dHfT',
|
filter: '!23qca9v**HCO.ESF)dHfT',
|
||||||
q: query
|
q: insight.query
|
||||||
}
|
}
|
||||||
|
|
||||||
return jQuery.ajax({
|
return jQuery.ajax({
|
||||||
|
Reference in New Issue
Block a user