Fix apparently intentional off by one error when creating multiple shifts.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-08-08 14:41:20 +02:00
parent 8076f0c380
commit badd18cb1b

View file

@ -255,7 +255,7 @@ class ShiftCreateMultipleView(LoginRequiredMixin, CampViewMixin, FormView):
people_required = form.cleaned_data['people_required'] people_required = form.cleaned_data['people_required']
shifts = [] shifts = []
for index in range(number_of_shifts + 1): for index in range(number_of_shifts):
shift_range = DateTimeTZRange( shift_range = DateTimeTZRange(
start_datetime, start_datetime,
start_datetime + timezone.timedelta(minutes=shift_length), start_datetime + timezone.timedelta(minutes=shift_length),