We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6970ee5 commit 738744cCopy full SHA for 738744c
src/make_queue/views/reservation.py
@@ -379,7 +379,7 @@ def form_valid(self, form):
379
380
periods = []
381
for machine in form.cleaned_data['machine_type'].machines.all():
382
- if not machine.get_status() == Machine.Status.OUT_OF_ORDER:
+ if not (machine.get_status() == Machine.Status.OUT_OF_ORDER or machine.get_status() == Machine.Status.MAINTENANCE):
383
periods.extend(self.get_periods(machine, required_time))
384
385
# Periods in the near future is more interesting than in the distant
0 commit comments