Fix building stackoverflow query

This commit is contained in:
Maximilian Grundke
2018-10-05 14:48:09 +02:00
parent dd48cc6d10
commit fad97e36c1

View File

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