updated the validation condition for lunch break

This commit is contained in:
Luis Aleixo 2022-08-12 11:51:55 +01:00
parent a6454987f2
commit 833ed39e57

View file

@ -208,7 +208,7 @@ class FormData:
# Validate lunch time within the activity times.
def validate_lunch(start, finish, time):
return start < time < finish
return start <= time <= finish
populations = ['exposed', 'infected'] if self.infected_dont_have_breaks_with_exposed else ['exposed']
for population in populations: