diff --git a/src/teams/views/shifts.py b/src/teams/views/shifts.py index cb4fe026..7a436462 100644 --- a/src/teams/views/shifts.py +++ b/src/teams/views/shifts.py @@ -255,7 +255,7 @@ class ShiftCreateMultipleView(LoginRequiredMixin, CampViewMixin, FormView): people_required = form.cleaned_data['people_required'] shifts = [] - for index in range(number_of_shifts + 1): + for index in range(number_of_shifts): shift_range = DateTimeTZRange( start_datetime, start_datetime + timezone.timedelta(minutes=shift_length),