From 61b2237446a11f29a99cb2a3bd9773dfdc21d4a1 Mon Sep 17 00:00:00 2001
From: Phil Elson
Date: Fri, 6 Nov 2020 17:54:29 +0100
Subject: [PATCH] Fix the HEPA information in the report.
---
cara/apps/calculator/report_generator.py | 1 -
cara/apps/calculator/templates/report.html.j2 | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/cara/apps/calculator/report_generator.py b/cara/apps/calculator/report_generator.py
index d50dda0c..573f8bb0 100644
--- a/cara/apps/calculator/report_generator.py
+++ b/cara/apps/calculator/report_generator.py
@@ -100,7 +100,6 @@ def build_report(model: models.Model, form: FormData):
'window_width': form.window_width,
'opening_distance': form.opening_distance,
'windows_open': form.windows_open,
- 'hepa_option': 'No',
'total_people': form.total_people,
'infected_people': form.infected_people,
'activity_type': form.activity_type,
diff --git a/cara/apps/calculator/templates/report.html.j2 b/cara/apps/calculator/templates/report.html.j2
index 8c29bb1b..607781c8 100644
--- a/cara/apps/calculator/templates/report.html.j2
+++ b/cara/apps/calculator/templates/report.html.j2
@@ -47,7 +47,7 @@
{% else %}
No
{% endif %}
- HEPA Filtration: {{ hepa_option }}
+ HEPA Filtration: {{ 'Yes' if form.hepa_option else 'No' }}