From 56acedd8af9657977911147147e37bfb7349cdd5 Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Tue, 22 Jun 2021 13:06:55 +0000 Subject: [PATCH] add infected_people --- cara/apps/calculator/report_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cara/apps/calculator/report_generator.py b/cara/apps/calculator/report_generator.py index e46c59cf..265ac9a3 100644 --- a/cara/apps/calculator/report_generator.py +++ b/cara/apps/calculator/report_generator.py @@ -281,7 +281,7 @@ def frequency(rate: int) -> str: #The frequency at which one person can get infected which is based on the incidence rate. #Incidence rate is number of positive cases per 100 000 population inc_rate = rate/100000 - freq = exposed_occupants * inc_rate + freq = (exposed_occupants + infected_people) * inc_rate if freq >= 1 return 1