removed restriction of total_people <= room_capacity

This commit is contained in:
lrdossan 2024-08-26 15:51:18 +02:00
parent 309b00a7cd
commit eb9e1dcee6
2 changed files with 0 additions and 11 deletions

View file

@ -69,8 +69,6 @@ class CO2FormData(FormData):
raise TypeError(f'The room capacity should be a valid integer (> 0). Got {type(self.room_capacity)}.')
if self.room_capacity <= 0:
raise TypeError(f'The room capacity should be a valid integer (> 0). Got {self.room_capacity}.')
if self.room_capacity < self.total_people:
raise TypeError(f'The room capacity should be higher than the total people in the room. Got {self.room_capacity}.')
# Validate specific inputs - breaks (exposed and infected)
if self.specific_breaks != {}:

View file

@ -253,15 +253,6 @@ function validateCO2Form() {
);
submit = false;
}
else if (roomCapacityNumber < totalPeopleNumber){
insertErrorFor(
$referenceNode,
`'${roomCapacity.attr('name')}' must be higher than the total people.</br>`
);
submit = false;
}
console.log(roomCapacityNumber)
console.log(totalPeopleNumber)
}
else {
insertErrorFor(