From a88ff3cf1f81a7a0fc774911c76d860ba906a2c0 Mon Sep 17 00:00:00 2001 From: markus Date: Fri, 6 Nov 2020 14:17:34 +0100 Subject: [PATCH] resolve todo --- cara/apps/calculator/model_generator.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cara/apps/calculator/model_generator.py b/cara/apps/calculator/model_generator.py index 4ba654ba..fddae399 100644 --- a/cara/apps/calculator/model_generator.py +++ b/cara/apps/calculator/model_generator.py @@ -189,8 +189,7 @@ def model_from_form(form: FormData, tmp_raw_form_data) -> models.Model: # Initializes a mask of type 1 if mask wearing is "continuous", otherwise instantiates the mask attribute as # the "No mask"-mask - # TODO: figure out the possible values of mask_wearing in the form - mask = models.Mask.types['Type I' if d['mask_wearing'] == "Continuous" else 'No mask'] + mask = models.Mask.types['Type I' if d['mask_wearing'] == "continuous" else 'No mask'] # A dictionary containing the mapping of activities listed in the UI to the activity level and expiration level # of the infected and exposed occupants respectively.