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
1 changed files with 1 additions and 1 deletions

View File

@ -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),