pricem/ESP-Website — comment on commit db8d8b01496215d9c94f7a17b2a83b3f793fe560
File: esp/esp/program/modules/handlers/availabilitymodule.py line 149
By aseering:

This isn't relevant to your commit per se; but is there a good reason not to rewrite this code along the lines of
```
timeslot_ids = post_vars.getlist('timeslots')
timeslots = Event.objects.filter(id__in=map(int, timeslot_ids))
missing_tsids = set(timeslot_ids) - set(x.id for x in timeslots)
if missing_tsids:
raise ESPError('Received requests for the following timeslots that don't exist: %s' % str(list(sorted(missing_tsids))))
```
? Save a query-in-a-loop; save the need to maintain the timeslots list. Also, save the need for some extra ".0"s in the e-mail template, because we're guaranteed with this approach that 'timeslots' is a list of valid timeslots.