   #   recordName: channel_name or user_name
   #   weekNum: 0-52
   #
-  calculateKey  = (recordType, weekNum) ->
+  calculateKey = (recordType, weekNum) ->
     "sentiment:#{weekNum}:#{recordType}"
 
   # Description:

  logSentiment = (response) ->
    analysis = sentiment(response.message.text)
    if(response.message.text.length > 2 && analysis && analysis.score)
      updateEntry('user', get_username(response), getWeekOfYear(), analysis.score)
      updateEntry('channel', get_channel(response), getWeekOfYear(), analysis.score)

  prettyPrintList = (entries, emptyMessage) ->
    output = ''
    entries = entries || []
    if entries.length
      for entry, i in entries
        output += "#{i+1}: #{entry.name}\n"
    output || emptyMessage

  onlyNegative = (list) ->

  #      score: 0
  #    }]
  getAllEntriesForWeek = (recordType, weekNum) ->
    (robot.brain[calculateKey(recordType, weekNum)] || {}).data || []


