wrap this baby in int()

This commit is contained in:
Thomas Steen Rasmussen 2017-01-31 23:45:53 +01:00
parent bae4e78b3f
commit 330ab25bd3

View file

@ -82,7 +82,7 @@ class ProgramDayView(CampViewMixin, TemplateView):
timeslots = []
# calculate how many timeslots we have in the schedule based on the lenght of the timeslots in minutes,
# and the number of minutes in 24 hours
for i in range(0,(24*60)/settings.SCHEDULE_TIMESLOT_LENGTH_MINUTES):
for i in range(0,int((24*60)/settings.SCHEDULE_TIMESLOT_LENGTH_MINUTES)):
timeslot = start + datetime.timedelta(minutes=i*settings.SCHEDULE_TIMESLOT_LENGTH_MINUTES)
timeslots.append(timeslot)
context['timeslots'] = timeslots