Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Commit

Permalink
Fix capacity calculation bug (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
JobDoesburg authored Sep 13, 2021
1 parent 64525a8 commit 947f5b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/room_reservation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def validate(self, room, start_time, end_time, pk=None, user=None):
simultaneous = 1
max_overlapping = 1
while i < len(start_times) and j < len(start_times):
if start_times[i] <= end_times[j]:
if start_times[i] < end_times[j]:
simultaneous += 1
if simultaneous > max_overlapping:
max_overlapping = simultaneous
Expand Down

0 comments on commit 947f5b0

Please sign in to comment.