From 978402c701b33e6efeab0bec64388a5207f0c7ae Mon Sep 17 00:00:00 2001 From: markus Date: Fri, 6 Nov 2020 09:52:53 +0100 Subject: [PATCH] change default window periodicity --- cara/apps/calculator/model_generator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cara/apps/calculator/model_generator.py b/cara/apps/calculator/model_generator.py index 9cdd21fe..11396d62 100644 --- a/cara/apps/calculator/model_generator.py +++ b/cara/apps/calculator/model_generator.py @@ -85,10 +85,10 @@ class FormData: def ventilation(self) -> models.Ventilation: # Initializes a ventilation instance as a window if 'natural' is selected, or as a HEPA-filter otherwise if self.ventilation_type == 'natural': - if self.windows_open == 'always': - period, duration = 120, 120 + if self.windows_open == '10 min / 2h': + period, duration = 120, 10 else: - period, duration = 15, 120 + period, duration = 120, 120 # I multiply the opening width by the number of windows to simulate the correct window area if self.event_type == 'single_event': month_number = int(self.single_event_date.split('/')[1])