Use dict value instead of object method
Use dict attr task_runs
Fix bad variable naame
Merge pull request #42 from PyBossa/issue-query-perf-improvements

Issue query perf improvements
Merge branch 'master' into issue-233-account-validation

* master:
  Fix bad variable naame
  Use dict attr task_runs
  Use dict value instead of object method