You are viewing a single comment's thread from:
RE: A week on Utopian Graphics · MAY 17 - MAY 24
Almost manually. Got the list from review sheet.
steem.api.getContentReplies(author, permlink, function(err, res) {
for (item of res) {
let score = /\d{8,8}/i
if (item.body.includes('review')) {
let result = item.body.match(score)[0]
app.respArray.push(result)
}
}
})
let column;
let answers = {
one: 0,
two: 0,
three: 0,
four: 0
}
for (item of scores) {
if (item[column] == 1) answers.one = answers.one + 1
if (item[column] == 2) answers.two = answers.two + 1
if (item[column] == 3) answers.three = answers.three + 1
if (item[column] == 4) answers.four = answers.four + 1
}
Hope I got the question right :|