     Indicator.findAll().success((indicators)->
       Report.findAll().success((reports) ->
         res.render "dashboard",
-          reports: reports
+          reports: formatReports(reports)
           indicators: indicators
         ).error((error)->
-            console.error error
+            console.error error  #TODO: This should be logged somewhere
             res.render(500, "Error fetching the reports")
           )
       )
     ).error((error) ->
-    console.error error
+    console.error error  #TODO: This should be logged somewhere
     res.render(500, "Error seeding DB")
   )

      obj.lastWeek.push report
  obj

exports.index = (req, res) ->
  # TODO: this is a mess, we need a better way of handling this hell of 
  # nested callbacks!

_ = require('underscore')
moment = require('moment')

Report = require '../models/report'
Indicator = require('../models/indicator')
