Fix apparently intentional off by one error when creating multiple shifts.
This commit is contained in:
parent
8076f0c380
commit
badd18cb1b
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue