You are viewing a single comment's thread from:

RE: A week on Utopian Graphics · MAY 17 - MAY 24

in #utopian-io6 years ago

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 :|

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63466.72
ETH 2683.95
USDT 1.00
SBD 2.80