From 330ab25bd35d01a798c9f7d86b006eb20834cb67 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Tue, 31 Jan 2017 23:45:53 +0100 Subject: [PATCH] wrap this baby in int() --- src/program/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/program/views.py b/src/program/views.py index c112538b..cdfd9fad 100644 --- a/src/program/views.py +++ b/src/program/views.py @@ -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