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

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



    robot.brain[calculateKey(recordType, weekNum)] = {data: masterRecord}

  # helper method to get sender of the message
  getUsername = (response) ->
    "@#{response.message.user.name}"

  # helper method to get channel of originating message
  getChannel = (response) ->
    if response.message.room == response.message.user.name
      "@#{response.message.room}"
    else
      "##{response.message.room}"

  isPrivateMessage = (response) ->
    return getUsername(response) == getChannel(response)

  # update sentiment of a record
  # Params:
