only one db fetch


On Thu, Apr 11, 2013 at 8:25 PM, Eugene Fang <notifications@github.com>wrote:

> In models/event.py:
>
> >          if self._awards is None:
> > -            self.prepAwards()
> > -            self._awards = self._awards_future.get_result()
> > +            if self._awards_future is None:
> > +                self.prepAwards()
> > +            self._awards = [award.get_result() for award in self._awards_future]
>
> Not sure what you mean about it being parallelized.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/gregmarra/the-blue-alliance/pull/606/files#r3766330>
> .
>